From cec64e173dc91518eecf96eef59acbdecabcbda7 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Thu, 10 Aug 2023 12:58:02 +0800 Subject: [PATCH 1/6] update to use testmodeler2.6.1 --- src/AutoRest.CSharp/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoRest.CSharp/readme.md b/src/AutoRest.CSharp/readme.md index ab1d99cac35..0529b324873 100644 --- a/src/AutoRest.CSharp/readme.md +++ b/src/AutoRest.CSharp/readme.md @@ -36,7 +36,7 @@ pipeline: ```yaml $(testgen) use-extension: - "@autorest/testmodeler": "2.6.0" + "@autorest/testmodeler": "2.6.1" pipeline: test-modeler: From 42fc1581cb05ff5fa834619c6cfdae80cd8121a7 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Thu, 17 Aug 2023 22:29:21 +0800 Subject: [PATCH 2/6] Include sample-gen in when generating code --- .../Common/AutoRest/Plugins/CSharpGen.cs | 26 ++++--- .../Common/AutoRest/Plugins/Configuration.cs | 2 +- .../AutoRest/Plugins/PluginProcessor.cs | 2 + .../Common/Utilities/AutoRestLogger.cs | 34 +++++++++ .../Mgmt/AutoRest/MgmtConfiguration.cs | 13 +++- .../AutoRest/MgmtTestConfiguration.cs | 22 ++++-- .../AutoRest/MgmtTestOutputLibrary.cs | 11 ++- .../MgmtTest/AutoRest/MgmtTestTarget.cs | 75 +++++++++++++------ .../build/CodeGeneration.targets | 12 ++- src/AutoRest.CSharp/readme.md | 4 +- 10 files changed, 150 insertions(+), 51 deletions(-) create mode 100644 src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs diff --git a/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs b/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs index 0016a1fe7bb..015829d9f7d 100644 --- a/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs +++ b/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs @@ -7,11 +7,11 @@ using System.Threading.Tasks; using AutoRest.CSharp.AutoRest.Communication; using AutoRest.CSharp.Common.Input; +using AutoRest.CSharp.Common.Utilities; using AutoRest.CSharp.Input; using AutoRest.CSharp.Input.Source; using AutoRest.CSharp.Utilities; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; namespace AutoRest.CSharp.AutoRest.Plugins { @@ -32,14 +32,20 @@ public async Task ExecuteAsync(CodeModel codeModel) } else if (Configuration.AzureArm) { - if (Configuration.MgmtTestConfiguration is not null) + if (Configuration.MgmtConfiguration.MgmtDebug.SkipCodeGen) { - // we currently do not need this sourceInputModel when generating the test code because it only has information about the "non-generated" test code. - await MgmtTestTarget.ExecuteAsync(project, codeModel); + await AutoRestLogger.Warning("skip generating sdk code because 'mgmt-debug.skip-codegen' is true."); + if (Configuration.MgmtTestConfiguration is not null) + { + project.AddDirectory(Configuration.OutputFolder); + MgmtTestTarget.Execute(project, codeModel, sourceInputModel); + } } else { await MgmtTarget.ExecuteAsync(project, codeModel, sourceInputModel); + if (Configuration.MgmtTestConfiguration is not null) + MgmtTestTarget.Execute(project, codeModel, sourceInputModel); } } else @@ -60,7 +66,7 @@ public async Task ExecuteAsync(InputNamespace rootNamesp return project; } - private static void ValidateConfiguration () + private static void ValidateConfiguration() { if (Configuration.Generation1ConvenienceClient && Configuration.AzureArm) { @@ -82,7 +88,7 @@ public async Task Execute(IPluginCommunication autoRest) if (!Path.IsPathRooted(Configuration.OutputFolder)) { - await autoRest.Warning("output-folder path should be an absolute path"); + await AutoRestLogger.Warning("output-folder path should be an absolute path"); } if (Configuration.SaveInputs) { @@ -95,12 +101,14 @@ public async Task Execute(IPluginCommunication autoRest) var project = await ExecuteAsync(codeModel); await foreach (var file in project.GetGeneratedFilesAsync()) { - await autoRest.WriteFile(file.Name, file.Text, "source-file-csharp"); + // format all \ to / in filename, otherwise they will be treated as escape char when sending to autorest service + var filename = file.Name.Replace('\\', '/'); + await autoRest.WriteFile(filename, file.Text, "source-file-csharp"); } } catch (ErrorHelpers.ErrorException e) { - await autoRest.Fatal(e.ErrorText); + await AutoRestLogger.Fatal(e.ErrorText); return false; } catch (Exception e) @@ -118,7 +126,7 @@ public async Task Execute(IPluginCommunication autoRest) { // Ignore any errors while trying to output crash information } - await autoRest.Fatal($"Internal error in AutoRest.CSharp{ErrorHelpers.FileIssueText}\nException: {e.Message}\n{e.StackTrace}"); + await AutoRestLogger.Fatal($"Internal error in AutoRest.CSharp{ErrorHelpers.FileIssueText}\nException: {e.Message}\n{e.StackTrace}"); return false; } diff --git a/src/AutoRest.CSharp/Common/AutoRest/Plugins/Configuration.cs b/src/AutoRest.CSharp/Common/AutoRest/Plugins/Configuration.cs index 74b1af9d7a6..f6e8c43eae5 100644 --- a/src/AutoRest.CSharp/Common/AutoRest/Plugins/Configuration.cs +++ b/src/AutoRest.CSharp/Common/AutoRest/Plugins/Configuration.cs @@ -391,7 +391,7 @@ private static T GetRequiredOption(IPluginCommunication autoRest, string name return autoRest.GetValue(name).GetAwaiter().GetResult() ?? throw new InvalidOperationException($"{name} configuration parameter is required"); } - private static string TrimFileSuffix(string path) + internal static string TrimFileSuffix(string path) { if (Uri.IsWellFormedUriString(path, UriKind.Absolute)) { diff --git a/src/AutoRest.CSharp/Common/AutoRest/Plugins/PluginProcessor.cs b/src/AutoRest.CSharp/Common/AutoRest/Plugins/PluginProcessor.cs index 709652be844..d535f89e253 100644 --- a/src/AutoRest.CSharp/Common/AutoRest/Plugins/PluginProcessor.cs +++ b/src/AutoRest.CSharp/Common/AutoRest/Plugins/PluginProcessor.cs @@ -8,6 +8,7 @@ using System.Text.Json; using System.Threading.Tasks; using AutoRest.CSharp.AutoRest.Communication; +using AutoRest.CSharp.Common.Utilities; using AutoRest.CSharp.Input; using AutoRest.CSharp.Utilities; @@ -34,6 +35,7 @@ public static async Task Start(IPluginCommunication autoRest) Console.Error.WriteLine("Attempting to attach debugger."); System.Diagnostics.Debugger.Launch(); } + AutoRestLogger.Initialize(autoRest); return await plugin.Execute(autoRest); } catch (Exception e) diff --git a/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs b/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs new file mode 100644 index 00000000000..f1f3a4af05f --- /dev/null +++ b/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using System.Threading.Tasks; +using AutoRest.CSharp.AutoRest.Communication; + +namespace AutoRest.CSharp.Common.Utilities +{ + internal static class AutoRestLogger + { + private static IPluginCommunication? _autoRest = null; + public static void Initialize(IPluginCommunication autoRest) + { + _autoRest = autoRest; + } + + public static bool HasInitialized => _autoRest != null; + + public static async Task Warning(string message) + { + if (!HasInitialized) + throw new InvalidOperationException("AutoRestLogger.Warning is called before initialized"); + await _autoRest!.Warning(message); + } + + public static async Task Fatal(string message) + { + if (!HasInitialized) + throw new InvalidOperationException("AutoRestLogger.Fatal is called before initialized"); + await _autoRest!.Fatal(message); + } + } +} diff --git a/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtConfiguration.cs b/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtConfiguration.cs index 3c3d3f2d891..1d57af2a32d 100644 --- a/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtConfiguration.cs +++ b/src/AutoRest.CSharp/Mgmt/AutoRest/MgmtConfiguration.cs @@ -21,13 +21,17 @@ public class MgmtDebugConfiguration public bool ShowSerializedNames { get; } + public bool SkipCodeGen { get; } + public MgmtDebugConfiguration( JsonElement? suppressListException = default, - JsonElement? showSerializedNames = default + JsonElement? showSerializedNames = default, + JsonElement? skipCodeGen = default ) { SuppressListException = Configuration.DeserializeBoolean(suppressListException, false); ShowSerializedNames = Configuration.DeserializeBoolean(showSerializedNames, false); + SkipCodeGen = Configuration.DeserializeBoolean(skipCodeGen, false); } internal static MgmtDebugConfiguration LoadConfiguration(JsonElement root) @@ -37,10 +41,12 @@ internal static MgmtDebugConfiguration LoadConfiguration(JsonElement root) root.TryGetProperty(nameof(SuppressListException), out var suppressListException); root.TryGetProperty(nameof(ShowSerializedNames), out var showSerializedNames); + root.TryGetProperty(nameof(SkipCodeGen), out var skipCodeGen); return new MgmtDebugConfiguration( suppressListException: suppressListException, - showSerializedNames: showSerializedNames + showSerializedNames: showSerializedNames, + skipCodeGen: skipCodeGen ); } @@ -48,7 +54,8 @@ internal static MgmtDebugConfiguration GetConfiguration(IPluginCommunication aut { return new MgmtDebugConfiguration( suppressListException: autoRest.GetValue(string.Format(MgmtDebugOptionsFormat, "suppress-list-exception")).GetAwaiter().GetResult(), - showSerializedNames: autoRest.GetValue(string.Format(MgmtDebugOptionsFormat, "show-serialized-names")).GetAwaiter().GetResult() + showSerializedNames: autoRest.GetValue(string.Format(MgmtDebugOptionsFormat, "show-serialized-names")).GetAwaiter().GetResult(), + skipCodeGen: autoRest.GetValue(string.Format(MgmtDebugOptionsFormat, "skip-codegen")).GetAwaiter().GetResult() ); } diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestConfiguration.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestConfiguration.cs index 68255dedd7b..35ba8dde4f0 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestConfiguration.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestConfiguration.cs @@ -11,24 +11,30 @@ namespace AutoRest.CSharp.Input { internal class MgmtTestConfiguration { - private const string TestGenOptionsRoot = "testgen"; + private const string TestGenOptionsRoot = "sample-gen"; private const string TestGenOptionsFormat = $"{TestGenOptionsRoot}.{{0}}"; public string? SourceCodePath { get; } + public string? OutputFolder { get; } public bool Mock { get; } public bool Sample { get; } public IReadOnlyList SkippedOperations { get; } + public bool ClearOutputFolder { get; } public MgmtTestConfiguration( IReadOnlyList skippedOperations, JsonElement? sourceCodePath = default, JsonElement? mock = default, - JsonElement? sample = default) + JsonElement? sample = default, + JsonElement? outputFolder = default, + JsonElement? clearOutputFolder = default) { SkippedOperations = skippedOperations; SourceCodePath = !Configuration.IsValidJsonElement(sourceCodePath) ? null : sourceCodePath.ToString(); Mock = Configuration.DeserializeBoolean(mock, false); - Sample = Configuration.DeserializeBoolean(sample, false); + Sample = Configuration.DeserializeBoolean(sample, true); + OutputFolder = !Configuration.IsValidJsonElement(outputFolder) ? null : Configuration.TrimFileSuffix(outputFolder.ToString() ?? ""); + ClearOutputFolder = Configuration.DeserializeBoolean(clearOutputFolder, false); } internal static MgmtTestConfiguration? LoadConfiguration(JsonElement root) @@ -42,6 +48,8 @@ public MgmtTestConfiguration( testGenRoot.TryGetProperty(nameof(SourceCodePath), out var sourceCodePath); testGenRoot.TryGetProperty(nameof(Mock), out var mock); testGenRoot.TryGetProperty(nameof(Sample), out var sample); + testGenRoot.TryGetProperty(nameof(OutputFolder), out var testGenOutputFolder); + testGenRoot.TryGetProperty(nameof(ClearOutputFolder), out var testGenClearOutputFolder); var skippedOperations = Configuration.DeserializeArray(skippedOperationsElement); @@ -49,7 +57,9 @@ public MgmtTestConfiguration( skippedOperations, sourceCodePath: sourceCodePath, mock: mock, - sample: sample); + sample: sample, + outputFolder: testGenOutputFolder, + clearOutputFolder: testGenClearOutputFolder); } internal static MgmtTestConfiguration? GetConfiguration(IPluginCommunication autoRest) @@ -63,7 +73,9 @@ public MgmtTestConfiguration( skippedOperations: autoRest.GetValue(string.Format(TestGenOptionsFormat, "skipped-operations")).GetAwaiter().GetResult() ?? Array.Empty(), sourceCodePath: autoRest.GetValue(string.Format(TestGenOptionsFormat, "source-path")).GetAwaiter().GetResult(), mock: autoRest.GetValue(string.Format(TestGenOptionsFormat, "mock")).GetAwaiter().GetResult(), - sample: autoRest.GetValue(string.Format(TestGenOptionsFormat, "sample")).GetAwaiter().GetResult()); + sample: autoRest.GetValue(string.Format(TestGenOptionsFormat, "sample")).GetAwaiter().GetResult(), + outputFolder: autoRest.GetValue(string.Format(TestGenOptionsFormat, "output-folder")).GetAwaiter().GetResult(), + clearOutputFolder: autoRest.GetValue(string.Format(TestGenOptionsFormat, "clear-output-folder")).GetAwaiter().GetResult()); } internal void SaveConfiguration(Utf8JsonWriter writer) diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs index a32e837f34d..3b4ed1383ca 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestOutputLibrary.cs @@ -25,11 +25,14 @@ internal class MgmtTestOutputLibrary private readonly MgmtTestConfiguration _mgmtTestConfiguration; public MgmtTestOutputLibrary(CodeModel codeModel, SourceInputModel sourceInputModel) { - MgmtContext.Initialize(new BuildContext(codeModel, sourceInputModel)); - - // force trigger the model initialization - foreach (var _ in MgmtContext.Library.ResourceSchemaMap) + if (!MgmtContext.IsInitialized) { + MgmtContext.Initialize(new BuildContext(codeModel, sourceInputModel)); + + // force trigger the model initialization + foreach (var _ in MgmtContext.Library.ResourceSchemaMap) + { + } } _mockTestModel = MgmtContext.CodeModel.TestModel!.MockTest; diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs index 2a40ea978b6..38624b2c3e4 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs @@ -5,8 +5,6 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; -using System.Threading.Tasks; -using AutoRest.CSharp.Generation.Writers; using AutoRest.CSharp.Input; using AutoRest.CSharp.Input.Source; using AutoRest.CSharp.MgmtTest.AutoRest; @@ -17,21 +15,14 @@ namespace AutoRest.CSharp.AutoRest.Plugins { internal class MgmtTestTarget { - public static async Task ExecuteAsync(GeneratedCodeWorkspace project, CodeModel codeModel) + public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, SourceInputModel sourceInputModel) { Debug.Assert(codeModel.TestModel is not null); Debug.Assert(Configuration.MgmtTestConfiguration is not null); - var sourceCodePath = GetSourceCodePath(); - var sourceCodeProject = new SourceCodeProject(sourceCodePath, Configuration.SharedSourceFolders); - var sourceInputModel = new SourceInputModel(await sourceCodeProject.GetCompilationAsync()); - // construct the MgmtTestOutputLibrary var library = new MgmtTestOutputLibrary(codeModel, sourceInputModel); - // add the files in the source code project into the GeneratedCodeWorkspace so that our Roslyn could know how to simplify them - project.AddDirectory(sourceCodePath); - if (Configuration.MgmtTestConfiguration.Mock) { WriteMockTests(project, library); @@ -44,17 +35,24 @@ public static async Task ExecuteAsync(GeneratedCodeWorkspace project, CodeModel if (_overriddenProjectFilenames.TryGetValue(project, out var overriddenFilenames)) throw new InvalidOperationException($"At least one file was overridden during the generation process. Filenames are: {string.Join(", ", overriddenFilenames)}"); + + if (Configuration.MgmtTestConfiguration.ClearOutputFolder) + { + ClearTestGenOutputFolder(); + } } private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { + string outputFolder = GetTestGenOutputFolder(); + // write the collection mock tests foreach (var collectionTest in library.ResourceCollectionMockTests) { var collectionTestWriter = new ResourceCollectionMockTestWriter(collectionTest); collectionTestWriter.Write(); - AddGeneratedFile(project, $"Mock/{collectionTest.Type.Name}.cs", collectionTestWriter.ToString()); + AddGeneratedFile(project, Path.Combine(outputFolder, $"Mock/{collectionTest.Type.Name}.cs"), collectionTestWriter.ToString()); } foreach (var resourceTest in library.ResourceMockTests) @@ -62,18 +60,20 @@ private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutpu var resourceTestWriter = new ResourceMockTestWriter(resourceTest); resourceTestWriter.Write(); - AddGeneratedFile(project, $"Mock/{resourceTest.Type.Name}.cs", resourceTestWriter.ToString()); + AddGeneratedFile(project, Path.Combine(outputFolder, $"Mock/{resourceTest.Type.Name}.cs"), resourceTestWriter.ToString()); } var extensionWrapperTest = library.ExtensionWrapperMockTest; var extensionWrapperTestWriter = new ExtensionWrapMockTestWriter(extensionWrapperTest, library.ExtensionMockTests); extensionWrapperTestWriter.Write(); - AddGeneratedFile(project, $"Mock/{extensionWrapperTest.Type.Name}.cs", extensionWrapperTestWriter.ToString()); + AddGeneratedFile(project, Path.Combine(outputFolder, $"Mock/{extensionWrapperTest.Type.Name}.cs"), extensionWrapperTestWriter.ToString()); } private static void WriteSamples(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { + string outputFolder = GetTestGenOutputFolder(); + var names = new Dictionary(); foreach (var sample in library.Samples) { @@ -81,7 +81,7 @@ private static void WriteSamples(GeneratedCodeWorkspace project, MgmtTestOutputL sampleWriter.Write(); var filename = GetFilename(sample.Type.Name, names); - AddGeneratedFile(project, $"Samples/{filename}.cs", sampleWriter.ToString()); + AddGeneratedFile(project, Path.Combine(outputFolder, $"Samples/{filename}.cs"), sampleWriter.ToString()); } } @@ -97,15 +97,48 @@ private static string GetFilename(string name, Dictionary names) return name; } - private static string GetSourceCodePath() + private static string GetTestGenOutputFolder() { - if (Configuration.MgmtTestConfiguration?.SourceCodePath != null) - return Configuration.MgmtTestConfiguration.SourceCodePath; + if (Configuration.MgmtTestConfiguration == null || + string.IsNullOrEmpty(Configuration.MgmtTestConfiguration.OutputFolder)) + return Configuration.OutputFolder; + else + return Configuration.MgmtTestConfiguration.OutputFolder; + } - // try to find the sdk source code path according to the default folder structure - // Azure.ResourceManager.XXX \ src <- default sdk source folder - // \ samples \ Generated <- default sample output folder defined in msbuild - return Path.Combine(Configuration.OutputFolder, "../../src"); + private static void ClearTestGenOutputFolder() + { + if (Configuration.MgmtTestConfiguration == null || + string.IsNullOrEmpty(Configuration.MgmtTestConfiguration.OutputFolder)) + return; + DirectoryInfo di = new DirectoryInfo(Configuration.MgmtTestConfiguration.OutputFolder); + ClearFolder(di); + } + + private static void ClearFolder(DirectoryInfo di) + { + if (di.Exists) + { + foreach (FileInfo fi in di.EnumerateFiles()) + { + try + { + fi.Delete(); + } + // Ignore the error from clearing folder + catch { } + } + foreach (DirectoryInfo subFolder in di.EnumerateDirectories()) + { + ClearFolder(subFolder); + try + { + subFolder.Delete(); + } + // Ignore the error from clearing folder + catch { } + } + } } private static IDictionary> _addedProjectFilenames = new Dictionary>(); diff --git a/src/AutoRest.CSharp/build/CodeGeneration.targets b/src/AutoRest.CSharp/build/CodeGeneration.targets index 3beeb0355b7..3e0e5420faa 100644 --- a/src/AutoRest.CSharp/build/CodeGeneration.targets +++ b/src/AutoRest.CSharp/build/CodeGeneration.targets @@ -30,7 +30,7 @@ <_GenerateCode Condition="'$(AutoRestInput)' != '' OR '$(TypeSpecInput)' != ''">true true - <_AutoRestCommand>node $(AutoRestEntryPoint) --max-memory-size=8192 --skip-csproj --skip-upgrade-check --version=$(AutoRestCoreVersion) $(AutoRestInput) $(AutoRestAdditionalParameters) --use=$(MSBuildThisFileDirectory)../tools/net6.0/any/ --clear-output-folder=true --shared-source-folders="$(AzureCoreSharedCodeDirectory);$(AutoRestSharedCodeDirectory)" + <_AutoRestCommand>npx autorest@$(AutoRestVersion) --max-memory-size=8192 --skip-csproj --skip-upgrade-check --version=$(AutoRestCoreVersion) $(AutoRestInput) $(AutoRestAdditionalParameters) --use=$(MSBuildThisFileDirectory)../tools/net6.0/any/ --clear-output-folder=true --shared-source-folders="$(AzureCoreSharedCodeDirectory);$(AutoRestSharedCodeDirectory)" <_AutoRestCommand Condition="'$(UseDefaultNamespaceAndOutputFolder)' == 'true'">$(_AutoRestCommand) --output-folder=$(MSBuildProjectDirectory)/Generated --namespace=$(RootNamespace) <_SaveInputs Condition="'$(SaveInputs)' == 'true'">-SaveInputs <_TypespecAdditionalOptions Condition="'$(TypespecAdditionalOptions)' != ''">-TypespecAdditionalOptions "$(TypespecAdditionalOptions)" @@ -60,12 +60,10 @@ - - + - - - + + @@ -77,7 +75,7 @@ - + diff --git a/src/AutoRest.CSharp/readme.md b/src/AutoRest.CSharp/readme.md index 0529b324873..b3a05a12288 100644 --- a/src/AutoRest.CSharp/readme.md +++ b/src/AutoRest.CSharp/readme.md @@ -34,7 +34,7 @@ pipeline: scope: output-scope ``` -```yaml $(testgen) +```yaml $(sample-gen) use-extension: "@autorest/testmodeler": "2.6.1" @@ -54,6 +54,8 @@ testmodeler: use-parents-value: true split-parents-value: false add-armtemplate-payload-string: true + +include-x-ms-examples-original-file: true # export-explicit-type: true ``` From d3a696a5c6fc6e1442b5c0f668927dac0384e58d Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Fri, 18 Aug 2023 14:18:03 +0800 Subject: [PATCH 3/6] fix some naming --- src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs | 6 +++--- .../MgmtTest/AutoRest/MgmtTestTarget.cs | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs b/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs index f1f3a4af05f..a58222103c2 100644 --- a/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs +++ b/src/AutoRest.CSharp/Common/Utilities/AutoRestLogger.cs @@ -15,18 +15,18 @@ public static void Initialize(IPluginCommunication autoRest) _autoRest = autoRest; } - public static bool HasInitialized => _autoRest != null; + public static bool IsInitialized => _autoRest != null; public static async Task Warning(string message) { - if (!HasInitialized) + if (!IsInitialized) throw new InvalidOperationException("AutoRestLogger.Warning is called before initialized"); await _autoRest!.Warning(message); } public static async Task Fatal(string message) { - if (!HasInitialized) + if (!IsInitialized) throw new InvalidOperationException("AutoRestLogger.Fatal is called before initialized"); await _autoRest!.Fatal(message); } diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs index 38624b2c3e4..6d5b2c9854f 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs @@ -38,13 +38,13 @@ public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, if (Configuration.MgmtTestConfiguration.ClearOutputFolder) { - ClearTestGenOutputFolder(); + ClearOutputFolder(); } } private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { - string outputFolder = GetTestGenOutputFolder(); + string outputFolder = GetOutputFolder(); // write the collection mock tests foreach (var collectionTest in library.ResourceCollectionMockTests) @@ -72,7 +72,7 @@ private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutpu private static void WriteSamples(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { - string outputFolder = GetTestGenOutputFolder(); + string outputFolder = GetOutputFolder(); var names = new Dictionary(); foreach (var sample in library.Samples) @@ -97,7 +97,7 @@ private static string GetFilename(string name, Dictionary names) return name; } - private static string GetTestGenOutputFolder() + private static string GetOutputFolder() { if (Configuration.MgmtTestConfiguration == null || string.IsNullOrEmpty(Configuration.MgmtTestConfiguration.OutputFolder)) @@ -106,7 +106,7 @@ private static string GetTestGenOutputFolder() return Configuration.MgmtTestConfiguration.OutputFolder; } - private static void ClearTestGenOutputFolder() + private static void ClearOutputFolder() { if (Configuration.MgmtTestConfiguration == null || string.IsNullOrEmpty(Configuration.MgmtTestConfiguration.OutputFolder)) From ed3a4a0aae24a59d75215a569fb9b4000fff4119 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Fri, 18 Aug 2023 21:57:34 +0800 Subject: [PATCH 4/6] fix test project --- .../Common/AutoRest/Plugins/CSharpGen.cs | 7 +- .../MgmtTest/AutoRest/MgmtTestTarget.cs | 79 +++++- .../tests/Generated/CodeModel.yaml | 255 ++++++++++++------ .../tests/Generated/Configuration.json | 2 +- .../Sample_DeletedManagedHsmCollection.cs | 4 +- .../Sample_DeletedManagedHsmResource.cs | 4 +- .../Samples/Sample_DeletedVaultResource.cs | 2 +- .../Sample_DiskEncryptionSetCollection.cs | 16 +- .../Sample_DiskEncryptionSetResource.cs | 14 +- .../Sample_FirewallPolicyCollection.cs | 10 +- .../Samples/Sample_FirewallPolicyResource.cs | 10 +- ...wallPolicyRuleCollectionGroupCollection.cs | 32 +-- ...rewallPolicyRuleCollectionGroupResource.cs | 20 +- ..._GuestConfigurationAssignmentCollection.cs | 8 +- ...le_GuestConfigurationAssignmentResource.cs | 6 +- .../Samples/Sample_ManagedHsmCollection.cs | 8 +- .../Samples/Sample_ManagedHsmResource.cs | 10 +- ...mplePrivateEndpointConnectionCollection.cs | 8 +- ...SamplePrivateEndpointConnectionResource.cs | 6 +- ...MhsmPrivateEndpointConnectionCollection.cs | 8 +- ...e_MhsmPrivateEndpointConnectionResource.cs | 6 +- .../Sample_RoleAssignmentCollection.cs | 14 +- .../Samples/Sample_RoleAssignmentResource.cs | 8 +- .../Sample_SubscriptionResourceExtensions.cs | 4 +- .../Sample_TenantResourceExtensions.cs | 4 +- .../Samples/Sample_VaultCollection.cs | 10 +- .../Generated/Samples/Sample_VaultResource.cs | 18 +- ..._VirtualMachineExtensionImageCollection.cs | 16 +- ...le_VirtualMachineExtensionImageResource.cs | 4 +- .../MgmtMockAndSample/tests/readme.md | 6 +- 30 files changed, 368 insertions(+), 231 deletions(-) diff --git a/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs b/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs index 015829d9f7d..0c0394e426f 100644 --- a/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs +++ b/src/AutoRest.CSharp/Common/AutoRest/Plugins/CSharpGen.cs @@ -36,16 +36,13 @@ public async Task ExecuteAsync(CodeModel codeModel) { await AutoRestLogger.Warning("skip generating sdk code because 'mgmt-debug.skip-codegen' is true."); if (Configuration.MgmtTestConfiguration is not null) - { - project.AddDirectory(Configuration.OutputFolder); - MgmtTestTarget.Execute(project, codeModel, sourceInputModel); - } + await MgmtTestTarget.ExecuteAsync(project, codeModel, null); } else { await MgmtTarget.ExecuteAsync(project, codeModel, sourceInputModel); if (Configuration.MgmtTestConfiguration is not null) - MgmtTestTarget.Execute(project, codeModel, sourceInputModel); + await MgmtTestTarget.ExecuteAsync (project, codeModel, sourceInputModel); } } else diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs index 6d5b2c9854f..d36fa803d63 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Threading.Tasks; using AutoRest.CSharp.Input; using AutoRest.CSharp.Input.Source; using AutoRest.CSharp.MgmtTest.AutoRest; @@ -15,13 +16,29 @@ namespace AutoRest.CSharp.AutoRest.Plugins { internal class MgmtTestTarget { - public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, SourceInputModel sourceInputModel) + private const string SOURCE_DEFAULT_FOLDER_NAME = "src"; + private const string SOURCE_DEFAULT_OUTPUT_PATH = $"/{SOURCE_DEFAULT_FOLDER_NAME}/Generated"; + private const string MOCK_TEST_DEFAULT_OUTPUT_PATH = "/tests/Generated"; + private const string SAMPLE_DEFAULT_OUTPUT_PATH = "/samples/Generated"; + + public static async Task ExecuteAsync(GeneratedCodeWorkspace project, CodeModel codeModel, SourceInputModel? sourceInputModel) { Debug.Assert(codeModel.TestModel is not null); Debug.Assert(Configuration.MgmtTestConfiguration is not null); - // construct the MgmtTestOutputLibrary - var library = new MgmtTestOutputLibrary(codeModel, sourceInputModel); + MgmtTestOutputLibrary? library = null; + if (sourceInputModel == null) + { + var sourceFolder = GetSourceFolder(); + var sourceCodeProject = new SourceCodeProject(sourceFolder, Configuration.SharedSourceFolders); + sourceInputModel = new SourceInputModel(await sourceCodeProject.GetCompilationAsync()); + library = new MgmtTestOutputLibrary(codeModel, sourceInputModel); + project.AddDirectory(sourceFolder); + } + else + { + library = new MgmtTestOutputLibrary(codeModel, sourceInputModel); + } if (Configuration.MgmtTestConfiguration.Mock) { @@ -44,7 +61,7 @@ public static void Execute(GeneratedCodeWorkspace project, CodeModel codeModel, private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { - string outputFolder = GetOutputFolder(); + string outputFolder = GetOutputFolder(MOCK_TEST_DEFAULT_OUTPUT_PATH); // write the collection mock tests foreach (var collectionTest in library.ResourceCollectionMockTests) @@ -72,7 +89,7 @@ private static void WriteMockTests(GeneratedCodeWorkspace project, MgmtTestOutpu private static void WriteSamples(GeneratedCodeWorkspace project, MgmtTestOutputLibrary library) { - string outputFolder = GetOutputFolder(); + string outputFolder = GetOutputFolder(SAMPLE_DEFAULT_OUTPUT_PATH); var names = new Dictionary(); foreach (var sample in library.Samples) @@ -97,15 +114,6 @@ private static string GetFilename(string name, Dictionary names) return name; } - private static string GetOutputFolder() - { - if (Configuration.MgmtTestConfiguration == null || - string.IsNullOrEmpty(Configuration.MgmtTestConfiguration.OutputFolder)) - return Configuration.OutputFolder; - else - return Configuration.MgmtTestConfiguration.OutputFolder; - } - private static void ClearOutputFolder() { if (Configuration.MgmtTestConfiguration == null || @@ -141,6 +149,49 @@ private static void ClearFolder(DirectoryInfo di) } } + private static string GetOutputFolder(string defaultOutputPath) + { + if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.OutputFolder)) + return Configuration.MgmtTestConfiguration.OutputFolder; + + string defaultFolder = Path.GetFullPath(Configuration.OutputFolder); + // if the output folder is not given explicitly, try to figure it out from general output folder if possible according to default folder structure: + // Azure.ResourceManager.XXX \ src \ Generated <- default sdk source output folder + // \ samples(or tests) \ Generated <- default sample output folder defined in msbuild + string normalizedFolder = defaultFolder.Trim('/', '\\').Replace('\\', '/'); + if (normalizedFolder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return Path.Combine(defaultFolder, $"../..", defaultOutputPath); + else if (normalizedFolder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || normalizedFolder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return defaultFolder; + else + throw new InvalidOperationException("'sample-gen.output-folder' is not configured and can't figure it out from give general output-folder"); + } + + private static string GetSourceFolder() + { + if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.SourceCodePath)) + return Configuration.MgmtTestConfiguration.SourceCodePath; + + if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.OutputFolder) && + !string.Equals(Configuration.OutputFolder, Configuration.MgmtTestConfiguration.OutputFolder)) + { + // if the general output folder and our output folder is different, the general output folder should point to the sdk code folder src\Generated + return Path.Combine(Configuration.OutputFolder, ".."); + } + + string defaultFolder = Path.GetFullPath(Configuration.OutputFolder); + // if only the general output folder is given or it's the same as our output folder. Let's try to figure it out from given output folder if possible according to default folder structure: + // Azure.ResourceManager.XXX \ src <- default sdk source folder + // \ samples(or tests) \ Generated <- default sample output folder defined in msbuild + string normalizedFolder = defaultFolder.Trim('/', '\\').Replace('\\', '/'); + if (normalizedFolder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return Path.Combine(defaultFolder, ".."); + else if (normalizedFolder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || normalizedFolder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return Path.Combine(defaultFolder, "../..", SOURCE_DEFAULT_FOLDER_NAME); + else + throw new InvalidOperationException("'sample-gen.source-path' is not configured and can't figure it out from give output-folder and sample-gen.output-folder"); + } + private static IDictionary> _addedProjectFilenames = new Dictionary>(); private static IDictionary> _overriddenProjectFilenames = new Dictionary>(); diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml index eea3a0fbf86..c20b232a04c 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml @@ -11364,6 +11364,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVault.json responses: '200': body: @@ -11563,6 +11564,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVaultWithNetworkAcls.json responses: '200': body: @@ -11843,6 +11845,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateVault.json responses: '200': body: @@ -12123,6 +12126,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deleteVault.json responses: '200': headers: &ref_793 {} @@ -12243,6 +12247,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getVault.json responses: '200': body: @@ -12430,6 +12435,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listKeysOnVault.json responses: '200': body: @@ -12553,6 +12559,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/validateVault.json responses: '200': body: @@ -12675,6 +12682,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/disableVault.json responses: '200': {} language: !Languages @@ -12862,6 +12870,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateAccessPoliciesAdd.json responses: '200': body: @@ -13007,6 +13016,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultByResourceGroup.json responses: '200': body: @@ -13185,6 +13195,7 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultBySubscription.json responses: '200': body: @@ -13351,6 +13362,7 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listDeletedVaults.json responses: '200': body: @@ -13486,6 +13498,7 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getDeletedVault.json responses: '200': body: @@ -13620,6 +13633,7 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/purgeDeletedVault.json responses: '200': headers: &ref_881 {} @@ -13747,6 +13761,7 @@ operationGroups: vaultName: name: sample-vault type: Microsoft.KeyVault/vaults + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/checkVaultNameAvailability.json responses: '200': body: @@ -13897,6 +13912,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getPrivateEndpointConnection.json responses: '200': body: @@ -14095,6 +14111,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/putPrivateEndpointConnection.json responses: '200': body: @@ -14272,6 +14289,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deletePrivateEndpointConnection.json responses: '200': body: @@ -14401,6 +14419,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateEndpointConnection.json responses: '200': body: @@ -14557,6 +14576,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateLinkResources.json responses: '200': body: @@ -14707,6 +14727,7 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaaaaaaaaaaaaa + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json responses: '200': body: @@ -14730,6 +14751,7 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaa + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json responses: '200': body: @@ -14836,6 +14858,7 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json responses: '200': body: @@ -14857,6 +14880,7 @@ operationGroups: location: aaaa publisherName: aa subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json responses: '200': body: @@ -15016,6 +15040,7 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json responses: '200': body: @@ -15038,6 +15063,7 @@ operationGroups: location: aaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json responses: '200': body: @@ -15208,6 +15234,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json responses: '200': body: @@ -15248,6 +15275,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json responses: '200': body: @@ -15293,6 +15321,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json responses: '200': body: @@ -15476,6 +15505,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json responses: '200': body: @@ -15521,6 +15551,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json responses: '200': body: @@ -15570,6 +15601,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json responses: '200': body: @@ -15710,6 +15742,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json responses: '200': body: @@ -15740,6 +15773,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json responses: '200': body: @@ -15862,6 +15896,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json responses: '200': {} '202': {} @@ -15954,6 +15989,7 @@ operationGroups: api-version: '2022-03-02' resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json responses: '200': body: @@ -16070,6 +16106,7 @@ operationGroups: parameters: api-version: '2022-03-02' subscriptionId: '{subscription-id}' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json responses: '200': body: @@ -16318,6 +16355,7 @@ operationGroups: Environment: dogfood resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json responses: '200': body: @@ -16528,6 +16566,7 @@ operationGroups: Slice: A resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Update.json responses: '200': body: @@ -16705,6 +16744,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Delete.json responses: '200': {} '202': {} @@ -16843,6 +16883,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Get.json responses: '200': body: @@ -16985,6 +17026,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json responses: '200': body: @@ -17133,6 +17175,7 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json responses: '200': body: @@ -17269,6 +17312,7 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_List.json responses: '200': body: @@ -17417,6 +17461,7 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Get.json responses: '200': body: @@ -17543,6 +17588,7 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Purge.json responses: '202': {} x-ms-long-running-operation: true @@ -17669,6 +17715,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json responses: '200': body: @@ -17831,6 +17878,7 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json responses: '200': body: @@ -18026,6 +18074,7 @@ operationGroups: status: Approved resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json responses: '200': body: @@ -18202,6 +18251,7 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json responses: '200': body: @@ -18339,6 +18389,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json responses: '200': body: @@ -18489,6 +18540,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyDelete.json responses: '200': {} '202': {} @@ -18623,6 +18675,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyGet.json responses: '200': body: @@ -18913,6 +18966,7 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPut.json responses: '200': body: @@ -19115,6 +19169,7 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json responses: '200': body: @@ -19354,6 +19409,7 @@ operationGroups: api-version: '2021-02-01' resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json responses: '200': body: @@ -19472,6 +19528,7 @@ operationGroups: parameters: api-version: '2021-02-01' subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json responses: '200': body: @@ -19654,6 +19711,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json responses: '200': {} '202': {} @@ -19790,6 +19848,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json responses: '200': body: @@ -19827,6 +19886,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json responses: '200': body: @@ -19860,6 +19920,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json responses: '200': body: @@ -19893,6 +19954,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json responses: '200': body: @@ -20117,6 +20179,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json responses: '200': body: @@ -20202,6 +20265,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json responses: '200': body: @@ -20260,6 +20324,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json responses: '200': body: @@ -20337,6 +20402,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json responses: '200': body: @@ -20413,6 +20479,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json responses: '200': body: @@ -20582,6 +20649,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json responses: '200': body: @@ -20616,6 +20684,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json responses: '200': body: @@ -20650,6 +20719,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json responses: '200': body: @@ -20775,6 +20845,7 @@ operationGroups: Lists available Rest API operations.: parameters: api-version: '2021-10-01' + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listOperations.json responses: '200': body: @@ -21174,6 +21245,7 @@ operationGroups: resourceProviderNamespace: resourceProviderNamespace resourceType: resourceType subscriptionId: subId + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResource.json responses: '200': body: @@ -21292,6 +21364,7 @@ operationGroups: api-version: 2017-10-01-preview resourceGroupName: rgname subscriptionId: subId + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json responses: '200': body: @@ -21419,6 +21492,7 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentName scope: scope + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeleteRoleAssignmentByName.json responses: '200': body: @@ -21571,6 +21645,7 @@ operationGroups: roleDefinitionId: /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/providers/Microsoft.Authorization/roleDefinitions/de139f84-1756-47ae-9be6-808fbbe84772 roleAssignmentName: roleAssignmentName scope: scope + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/PutRoleAssignment.json responses: '201': body: @@ -21684,6 +21759,7 @@ operationGroups: roleAssignmentName: roleAssignmentName scope: scope subscriptionId: subId + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByName.json responses: '200': body: @@ -21782,6 +21858,7 @@ operationGroups: parameters: api-version: 2017-10-01-preview subscriptionId: subId + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetAllRoleAssignments.json responses: '200': body: @@ -21867,6 +21944,7 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentId subscriptionId: subId + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ValidateRoleAssignment.json responses: '200': {} language: !Languages @@ -21970,6 +22048,7 @@ operationGroups: parameters: api-version: 2017-10-01-preview scope: scope + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByScope.json responses: '200': body: @@ -22114,6 +22193,7 @@ operationGroups: parameters: api-version: '2015-04-01' subscriptionId: 089bd33f-d4ec-47fe-8ba5-0753aa5c5b33 + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json responses: '200': body: @@ -22265,6 +22345,7 @@ operationGroups: location: West US vmSize: Large string: string + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/resources/CalculateTemplateHash.json responses: '200': body: @@ -22454,6 +22535,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json responses: '200': body: @@ -22623,6 +22705,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json responses: '200': body: @@ -22743,6 +22826,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json responses: '200': {} language: !Languages @@ -22846,6 +22930,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName + x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json responses: '200': body: @@ -23108,7 +23193,7 @@ testModel: parameter: *ref_483 operation: *ref_762 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/createVault.json responses: '200': body: @@ -23782,7 +23867,7 @@ testModel: parameter: *ref_483 operation: *ref_762 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/createVaultWithNetworkAcls.json responses: '200': body: @@ -24235,7 +24320,7 @@ testModel: parameter: *ref_489 operation: *ref_788 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/updateVault.json responses: '200': body: @@ -24763,7 +24848,7 @@ testModel: parameter: *ref_791 operation: *ref_795 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/deleteVault.json responses: '200': headers: *ref_793 @@ -24798,7 +24883,7 @@ testModel: parameter: *ref_798 operation: *ref_801 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/getVault.json responses: '200': body: @@ -25038,7 +25123,7 @@ testModel: parameter: *ref_804 operation: *ref_810 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/listKeysOnVault.json responses: '200': body: @@ -25101,7 +25186,7 @@ testModel: parameter: *ref_813 operation: *ref_821 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/validateVault.json responses: '200': body: @@ -25176,7 +25261,7 @@ testModel: parameter: *ref_824 operation: *ref_826 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/disableVault.json responses: '200': {} operation: *ref_826 @@ -25262,7 +25347,7 @@ testModel: parameter: *ref_507 operation: *ref_839 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/updateAccessPoliciesAdd.json responses: '200': body: @@ -25407,7 +25492,7 @@ testModel: parameter: *ref_842 operation: *ref_848 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/listVaultByResourceGroup.json responses: '200': body: @@ -25653,7 +25738,7 @@ testModel: parameter: *ref_850 operation: *ref_853 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/listVaultBySubscription.json responses: '200': body: @@ -25894,7 +25979,7 @@ testModel: parameter: *ref_854 operation: *ref_869 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/listDeletedVaults.json responses: '200': body: @@ -25984,7 +26069,7 @@ testModel: parameter: *ref_872 operation: *ref_876 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/getDeletedVault.json responses: '200': body: @@ -26063,7 +26148,7 @@ testModel: parameter: *ref_879 operation: *ref_883 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/purgeDeletedVault.json responses: '200': headers: *ref_881 @@ -26102,7 +26187,7 @@ testModel: parameter: *ref_523 operation: *ref_891 operationGroup: *ref_763 - originalFile: '' + originalFile: specification/mockSwagger/examples/checkVaultNameAvailability.json responses: '200': body: @@ -26148,7 +26233,7 @@ testModel: parameter: *ref_895 operation: *ref_910 operationGroup: *ref_911 - originalFile: '' + originalFile: specification/mockSwagger/examples/getPrivateEndpointConnection.json responses: '200': body: @@ -26265,7 +26350,7 @@ testModel: parameter: *ref_529 operation: *ref_919 operationGroup: *ref_911 - originalFile: '' + originalFile: specification/mockSwagger/examples/putPrivateEndpointConnection.json responses: '200': body: @@ -26356,7 +26441,7 @@ testModel: parameter: *ref_923 operation: *ref_927 operationGroup: *ref_911 - originalFile: '' + originalFile: specification/mockSwagger/examples/deletePrivateEndpointConnection.json responses: '200': body: @@ -26413,7 +26498,7 @@ testModel: parameter: *ref_930 operation: *ref_935 operationGroup: *ref_911 - originalFile: '' + originalFile: specification/mockSwagger/examples/listPrivateEndpointConnection.json responses: '200': body: @@ -26562,7 +26647,7 @@ testModel: parameter: *ref_938 operation: *ref_948 operationGroup: *ref_949 - originalFile: '' + originalFile: specification/mockSwagger/examples/listPrivateLinkResources.json responses: '200': body: @@ -26647,7 +26732,7 @@ testModel: parameter: *ref_954 operation: *ref_969 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json responses: '200': body: @@ -26738,7 +26823,7 @@ testModel: parameter: *ref_954 operation: *ref_969 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json responses: '200': body: @@ -26783,7 +26868,7 @@ testModel: parameter: *ref_973 operation: *ref_976 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json responses: '200': body: @@ -26866,7 +26951,7 @@ testModel: parameter: *ref_973 operation: *ref_976 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json responses: '200': body: @@ -26933,7 +27018,7 @@ testModel: parameter: *ref_983 operation: *ref_986 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json responses: '200': body: @@ -27021,7 +27106,7 @@ testModel: parameter: *ref_983 operation: *ref_986 operationGroup: *ref_970 - originalFile: '' + originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json responses: '200': body: @@ -27107,7 +27192,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json responses: '200': body: @@ -27267,7 +27352,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json responses: '200': body: @@ -27449,7 +27534,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json responses: '200': body: @@ -27619,7 +27704,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json responses: '200': body: @@ -27794,7 +27879,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json responses: '200': body: @@ -27986,7 +28071,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json responses: '200': body: @@ -28147,7 +28232,7 @@ testModel: parameter: *ref_1038 operation: *ref_1041 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json responses: '200': body: @@ -28254,7 +28339,7 @@ testModel: parameter: *ref_1038 operation: *ref_1041 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json responses: '200': body: @@ -28360,7 +28445,7 @@ testModel: parameter: *ref_1044 operation: *ref_1046 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json responses: '200': {} '202': {} @@ -28389,7 +28474,7 @@ testModel: parameter: *ref_1048 operation: *ref_1053 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json responses: '200': body: @@ -28568,7 +28653,7 @@ testModel: parameter: *ref_1054 operation: *ref_1057 operationGroup: *ref_1005 - originalFile: '' + originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json responses: '200': body: @@ -28845,7 +28930,7 @@ testModel: parameter: *ref_575 operation: *ref_1090 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json responses: '200': body: @@ -29063,7 +29148,7 @@ testModel: parameter: *ref_580 operation: *ref_1099 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_Update.json responses: '200': body: @@ -29268,7 +29353,7 @@ testModel: parameter: *ref_1102 operation: *ref_1104 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_Delete.json responses: '200': {} '202': {} @@ -29302,7 +29387,7 @@ testModel: parameter: *ref_1107 operation: *ref_1111 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_Get.json responses: '200': body: @@ -29415,7 +29500,7 @@ testModel: parameter: *ref_1113 operation: *ref_1118 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json responses: '200': body: @@ -29612,7 +29697,7 @@ testModel: parameter: *ref_1119 operation: *ref_1122 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json responses: '200': body: @@ -29809,7 +29894,7 @@ testModel: parameter: *ref_1123 operation: *ref_1138 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/DeletedManagedHsm_List.json responses: '200': body: @@ -29954,7 +30039,7 @@ testModel: parameter: *ref_1141 operation: *ref_1144 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/DeletedManagedHsm_Get.json responses: '200': body: @@ -30038,7 +30123,7 @@ testModel: parameter: *ref_1147 operation: *ref_1149 operationGroup: *ref_1091 - originalFile: '' + originalFile: specification/mockSwagger/examples/DeletedManagedHsm_Purge.json responses: '202': {} operation: *ref_1149 @@ -30070,7 +30155,7 @@ testModel: parameter: *ref_598 operation: *ref_1168 operationGroup: *ref_1169 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json responses: '200': body: @@ -30224,7 +30309,7 @@ testModel: parameter: *ref_1173 operation: *ref_1176 operationGroup: *ref_1169 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json responses: '200': body: @@ -30335,7 +30420,7 @@ testModel: parameter: *ref_603 operation: *ref_1184 operationGroup: *ref_1169 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json responses: '200': body: @@ -30422,7 +30507,7 @@ testModel: parameter: *ref_1188 operation: *ref_1192 operationGroup: *ref_1169 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json responses: '200': body: @@ -30479,7 +30564,7 @@ testModel: parameter: *ref_1195 operation: *ref_1205 operationGroup: *ref_1206 - originalFile: '' + originalFile: specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json responses: '200': body: @@ -30554,7 +30639,7 @@ testModel: parameter: *ref_1209 operation: *ref_1211 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyDelete.json responses: '200': {} '202': {} @@ -30588,7 +30673,7 @@ testModel: parameter: *ref_1215 operation: *ref_1282 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyGet.json responses: '200': body: @@ -31170,7 +31255,7 @@ testModel: parameter: *ref_623 operation: *ref_1292 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyPut.json responses: '200': body: @@ -32027,7 +32112,7 @@ testModel: parameter: *ref_623 operation: *ref_1292 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json responses: '200': body: @@ -32624,7 +32709,7 @@ testModel: parameter: *ref_1294 operation: *ref_1298 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json responses: '200': body: @@ -32749,7 +32834,7 @@ testModel: parameter: *ref_1299 operation: *ref_1302 operationGroup: *ref_1212 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json responses: '200': body: @@ -32889,7 +32974,7 @@ testModel: parameter: *ref_1306 operation: *ref_1308 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json responses: '200': {} '202': {} @@ -32928,7 +33013,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json responses: '200': body: @@ -33070,7 +33155,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json responses: '200': body: @@ -33198,7 +33283,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json responses: '200': body: @@ -33326,7 +33411,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json responses: '200': body: @@ -33560,7 +33645,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json responses: '200': body: @@ -33886,7 +33971,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json responses: '200': body: @@ -34110,7 +34195,7 @@ testModel: parameter: *ref_1358 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json responses: '200': body: @@ -34419,7 +34504,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json responses: '200': body: @@ -34719,7 +34804,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json responses: '200': body: @@ -34952,7 +35037,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json responses: '200': body: @@ -35091,7 +35176,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json responses: '200': body: @@ -35225,7 +35310,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: '' + originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json responses: '200': body: @@ -35348,7 +35433,7 @@ testModel: parameter: *ref_1371 operation: *ref_1404 operationGroup: *ref_1405 - originalFile: '' + originalFile: specification/mockSwagger/examples/listOperations.json responses: '200': body: @@ -36404,7 +36489,7 @@ testModel: parameter: *ref_1411 operation: *ref_1426 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetRoleAssignmentsForResource.json responses: '200': body: @@ -36475,7 +36560,7 @@ testModel: parameter: *ref_1429 operation: *ref_1432 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json responses: '200': body: @@ -36546,7 +36631,7 @@ testModel: parameter: *ref_1435 operation: *ref_1438 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/DeleteRoleAssignmentByName.json responses: '200': body: @@ -36632,7 +36717,7 @@ testModel: parameter: *ref_658 operation: *ref_1451 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/PutRoleAssignment.json responses: '201': body: @@ -36696,7 +36781,7 @@ testModel: parameter: *ref_1454 operation: *ref_1457 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetRoleAssignmentByName.json responses: '200': body: @@ -36755,7 +36840,7 @@ testModel: parameter: *ref_1458 operation: *ref_1461 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetAllRoleAssignments.json responses: '200': body: @@ -36826,7 +36911,7 @@ testModel: parameter: *ref_665 operation: *ref_1465 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/ValidateRoleAssignment.json responses: '200': {} operation: *ref_1465 @@ -36848,7 +36933,7 @@ testModel: parameter: *ref_1467 operation: *ref_1470 operationGroup: *ref_1427 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetRoleAssignmentByScope.json responses: '200': body: @@ -36909,7 +36994,7 @@ testModel: parameter: *ref_1471 operation: *ref_1481 operationGroup: *ref_1482 - originalFile: '' + originalFile: specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json responses: '200': body: @@ -36968,7 +37053,7 @@ testModel: parameter: *ref_675 operation: *ref_1490 operationGroup: *ref_1491 - originalFile: '' + originalFile: specification/mockSwagger/examples/resources/CalculateTemplateHash.json responses: '200': body: @@ -37043,7 +37128,7 @@ testModel: parameter: *ref_681 operation: *ref_1513 operationGroup: *ref_1514 - originalFile: '' + originalFile: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json responses: '200': body: @@ -37185,7 +37270,7 @@ testModel: parameter: *ref_1518 operation: *ref_1522 operationGroup: *ref_1514 - originalFile: '' + originalFile: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json responses: '200': body: @@ -37270,7 +37355,7 @@ testModel: parameter: *ref_1526 operation: *ref_1528 operationGroup: *ref_1514 - originalFile: '' + originalFile: specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json responses: '200': {} operation: *ref_1528 @@ -37302,7 +37387,7 @@ testModel: parameter: *ref_1531 operation: *ref_1535 operationGroup: *ref_1514 - originalFile: '' + originalFile: specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json responses: '200': body: diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Configuration.json b/test/TestProjects/MgmtMockAndSample/tests/Generated/Configuration.json index 550f0622bed..676f30b3fb0 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Configuration.json +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Configuration.json @@ -42,7 +42,7 @@ "Type": "EncryptionType", "FirewallPolicyThreatIntelWhitelist.ipAddresses": "-|ip-address" }, - "testgen": { + "sample-gen": { "SkippedOperations": [ "Vaults_GetDeleted", "Vaults_Update" diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs index 463d50b78f4..2fc63db9159 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedManagedHsmCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveADeletedManagedHSM() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_RetrieveADeletedManagedHSM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveADeletedManagedHSM() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs index e7c65e45611..e18b7aa1ff1 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedManagedHsmResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveADeletedManagedHSM() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_RetrieveADeletedManagedHSM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PurgeDeleted_PurgeAManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Purge.json // this example is just showing the usage of "ManagedHsms_PurgeDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs index dfb6e42fd48..08b30e6a2b1 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedVaultResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PurgeDeleted_PurgeADeletedVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/purgeDeletedVault.json // this example is just showing the usage of "Vaults_PurgeDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs index ba24a24438b..eeed1007a48 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_DiskEncryptionSetCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADifferentSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADiffer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADifferentTenant() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADiffer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +193,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -223,7 +223,7 @@ public async Task Exists_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotatio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,7 +257,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Exists_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllDiskEncryptionSetsInAResourceGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json // this example is just showing the usage of "DiskEncryptionSets_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs index ca564d35a45..649049a0d65 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs @@ -25,7 +25,7 @@ public partial class Sample_DiskEncryptionSetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueSucceeded() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionE [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueUpdating() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionE [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Update_UpdateADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteADiskEncryptionSet() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json // this example is just showing the usage of "DiskEncryptionSets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -237,7 +237,7 @@ public async Task Delete_DeleteADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDiskEncryptionSets_ListAllDiskEncryptionSetsInASubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json // this example is just showing the usage of "DiskEncryptionSets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs index e0ef98d0eff..6fd2d762ec9 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_FirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPut.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -226,7 +226,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyWithDifferentValues() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -363,7 +363,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyWithDifferentValues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPoliciesForAGivenResourceGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json // this example is just showing the usage of "FirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs index e7d43d64744..363f4c636e2 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs @@ -25,7 +25,7 @@ public partial class Sample_FirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyDelete.json // this example is just showing the usage of "FirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeleteFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPut.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task Update_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyWithDifferentValues() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -351,7 +351,7 @@ public async Task Update_CreateFirewallPolicyWithDifferentValues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json // this example is just showing the usage of "FirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs index 0cd5b585743..d4f9f240929 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -364,7 +364,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -436,7 +436,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultValues() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -473,7 +473,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithAllD [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -544,7 +544,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -616,7 +616,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebC [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -653,7 +653,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategori [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -690,7 +690,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirew [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs index 32749b333d3..1823863e6cb 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -322,7 +322,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultValues() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -356,7 +356,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultVa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -424,7 +424,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs index 7ad3650c99a..4548fefbe1f 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_GuestConfigurationAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateOrUpdateGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllGuestConfigurationAssignmentsForAVirtualMachine() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json // this example is just showing the usage of "GuestConfigurationAssignments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs index 547da5c93a4..8fc3c88448d 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_GuestConfigurationAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task Update_CreateOrUpdateGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnGuestConfigurationAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json // this example is just showing the usage of "GuestConfigurationAssignments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs index 41c55ea9add..a11284c8eee 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_ManagedHsmCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateANewManagedHSMPoolOrUpdateAnExistingManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json // this example is just showing the usage of "ManagedHsms_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task CreateOrUpdate_CreateANewManagedHSMPoolOrUpdateAnExistingManag [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Get_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveAManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Exists_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedHSMPoolsInAResourceGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json // this example is just showing the usage of "ManagedHsms_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs index ae776476d13..724d50a7223 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ManagedHsmResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnExistingManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Update.json // this example is just showing the usage of "ManagedHsms_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task Update_UpdateAnExistingManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Delete.json // this example is just showing the usage of "ManagedHsms_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Delete_DeleteAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAManagedHSMPool() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetManagedHsms_ListManagedHSMPoolsInASubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json // this example is just showing the usage of "ManagedHsms_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task GetManagedHsms_ListManagedHSMPoolsInASubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMHSMPrivateLinkResourcesByMhsmResource_KeyVaultListPrivateLinkResources() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json // this example is just showing the usage of "MHSMPrivateLinkResources_ListByMHSMResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs index f41b4a7cafe..36ce2413c97 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KeyVaultPutPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/putPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_KeyVaultPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KeyVaultListPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_ListByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs index 2830b8a7a13..a4ebf043d0a 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_MgmtMockAndSamplePrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KeyVaultPutPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/putPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Update_KeyVaultPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KeyVaultDeletePrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/deletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs index 1e9eb86b72d..b7b27b3aa62 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MhsmPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedHSMPoolsInASubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_ListByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListManagedHSMPoolsInASubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ManagedHsmPutPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs index 285bea10955..15fa444f820 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_MhsmPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ManagedHsmPutPrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_ManagedHsmPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ManagedHsmDeletePrivateEndpointConnection() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json // this example is just showing the usage of "MHSMPrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs index 0c08353fe1f..ef64b0b981b 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RoleAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForResource() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentsForResource.json // this example is just showing the usage of "RoleAssignments_ListForResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_ListRoleAssignmentsForResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForResourceGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json // this example is just showing the usage of "RoleAssignments_ListForResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task GetAll_ListRoleAssignmentsForResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRoleAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/PutRoleAssignment.json // this example is just showing the usage of "RoleAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task CreateOrUpdate_CreateRoleAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoleAssignmentByName() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task Get_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRoleAssignmentByName() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -196,7 +196,7 @@ public async Task Exists_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetAllRoleAssignments.json // this example is just showing the usage of "RoleAssignments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetAll_ListRoleAssignmentsForSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForScope() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByScope.json // this example is just showing the usage of "RoleAssignments_ListForScope" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs index 7168cea43f2..6fd0bcd4c85 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RoleAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRoleAssignmentByName() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeleteRoleAssignmentByName.json // this example is just showing the usage of "RoleAssignments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Delete_DeleteRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateRoleAssignment() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/PutRoleAssignment.json // this example is just showing the usage of "RoleAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_CreateRoleAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoleAssignmentByName() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Get_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Validate_ValidateRoleAssignmentsForSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/ValidateRoleAssignment.json // this example is just showing the usage of "RoleAssignments_Validate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index c011da638f9..cbe0444307a 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -22,7 +22,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDeletedVaults_ListDeletedVaultsInTheSpecifiedSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listDeletedVaults.json // this example is just showing the usage of "Vaults_ListDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task GetDeletedVaults_ListDeletedVaultsInTheSpecifiedSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDeletedManagedHsms_ListDeletedManagedHSMsInTheSpecifiedSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_List.json // this example is just showing the usage of "ManagedHsms_ListDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs index 2d2469c777d..adddb7fc5b4 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_TenantResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTenantActivityLogs_GetTenantActivityLogsWithoutFilterOrSelect() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json // this example is just showing the usage of "TenantActivityLogs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task GetTenantActivityLogs_GetTenantActivityLogsWithoutFilterOrSele [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CalculateTemplateHashDeployment_CalculateTemplateHash() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/resources/CalculateTemplateHash.json // this example is just showing the usage of "Deployments_CalculateTemplateHash" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs index 14bfc271881..6dec2a4b18a 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_VaultCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateANewVaultOrUpdateAnExistingVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/createVault.json // this example is just showing the usage of "Vaults_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_CreateANewVaultOrUpdateAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAVaultWithNetworkAcls() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/createVaultWithNetworkAcls.json // this example is just showing the usage of "Vaults_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAVaultWithNetworkAcls() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getVault.json // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveAVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getVault.json // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task Exists_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVaultsInTheSpecifiedResourceGroup() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listVaultByResourceGroup.json // this example is just showing the usage of "Vaults_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs index 3287cd250ac..aa3ff288e79 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VaultResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/deleteVault.json // this example is just showing the usage of "Vaults_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/getVault.json // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_ListKeysOnAnExistingVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listKeysOnVault.json // this example is just showing the usage of "Vaults_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task GetKeys_ListKeysOnAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Validate_ValidateAnExistingVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/validateVault.json // this example is just showing the usage of "Vaults_Validate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Validate_ValidateAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Disable_DisableAVault() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/disableVault.json // this example is just showing the usage of "Vaults_Disable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Disable_DisableAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateAccessPolicy_AddAnAccessPolicyOrUpdateAnAccessPolicyWithNewPermissions() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/updateAccessPoliciesAdd.json // this example is just showing the usage of "Vaults_UpdateAccessPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task UpdateAccessPolicy_AddAnAccessPolicyOrUpdateAnAccessPolicyWith [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVaults_ListVaultsInTheSpecifiedSubscription() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listVaultBySubscription.json // this example is just showing the usage of "Vaults_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task GetVaults_ListVaultsInTheSpecifiedSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNameAvailabilityVault_ValidateAVaultName() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/checkVaultNameAvailability.json // this example is just showing the usage of "Vaults_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task CheckNameAvailabilityVault_ValidateAVaultName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_KeyVaultListPrivateLinkResources() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/listPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListByVault" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs index 8375d93db02..6e2d3d22946 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualMachineExtensionImageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -273,7 +273,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListVersionsMinimumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs index fffb66f4ced..c68be868847 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualMachineExtensionImageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: + // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/readme.md b/test/TestProjects/MgmtMockAndSample/tests/readme.md index 30f1eec1161..2733bf34f79 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/readme.md +++ b/test/TestProjects/MgmtMockAndSample/tests/readme.md @@ -5,9 +5,13 @@ ``` yaml require: ../src/readme.md -testgen: +mgmt-debug: + skip-codegen: true +sample-gen: mock: true sample: true + output-folder: $(this-folder)/Generated + clear-output-folder: true skipped-operations: # only to test if the configuration works - Vaults_GetDeleted - Vaults_Update From 3d2956cb7362767ef1a3eb750df4880306585ec6 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Fri, 18 Aug 2023 23:21:42 +0800 Subject: [PATCH 5/6] fix path format --- .../MgmtTest/AutoRest/MgmtTestTarget.cs | 36 ++-- .../tests/Generated/CodeModel.yaml | 170 +++++++++--------- 2 files changed, 107 insertions(+), 99 deletions(-) diff --git a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs index d36fa803d63..812c42515c9 100644 --- a/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs +++ b/src/AutoRest.CSharp/MgmtTest/AutoRest/MgmtTestTarget.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Net.NetworkInformation; using System.Threading.Tasks; using AutoRest.CSharp.Input; using AutoRest.CSharp.Input.Source; @@ -154,15 +155,14 @@ private static string GetOutputFolder(string defaultOutputPath) if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.OutputFolder)) return Configuration.MgmtTestConfiguration.OutputFolder; - string defaultFolder = Path.GetFullPath(Configuration.OutputFolder); + string folder = FormatPath(Configuration.OutputFolder); // if the output folder is not given explicitly, try to figure it out from general output folder if possible according to default folder structure: // Azure.ResourceManager.XXX \ src \ Generated <- default sdk source output folder // \ samples(or tests) \ Generated <- default sample output folder defined in msbuild - string normalizedFolder = defaultFolder.Trim('/', '\\').Replace('\\', '/'); - if (normalizedFolder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) - return Path.Combine(defaultFolder, $"../..", defaultOutputPath); - else if (normalizedFolder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || normalizedFolder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) - return defaultFolder; + if (folder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return FormatPath(Path.Combine(folder, $"../..", defaultOutputPath)); + else if (folder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || folder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return folder; else throw new InvalidOperationException("'sample-gen.output-folder' is not configured and can't figure it out from give general output-folder"); } @@ -172,26 +172,34 @@ private static string GetSourceFolder() if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.SourceCodePath)) return Configuration.MgmtTestConfiguration.SourceCodePath; + string folder = FormatPath(Configuration.OutputFolder); + string testFolder = FormatPath(Configuration.MgmtTestConfiguration?.OutputFolder); + if (!string.IsNullOrEmpty(Configuration.MgmtTestConfiguration?.OutputFolder) && - !string.Equals(Configuration.OutputFolder, Configuration.MgmtTestConfiguration.OutputFolder)) + !string.Equals(folder, testFolder, StringComparison.InvariantCultureIgnoreCase)) { // if the general output folder and our output folder is different, the general output folder should point to the sdk code folder src\Generated - return Path.Combine(Configuration.OutputFolder, ".."); + return FormatPath(Path.Combine(Configuration.OutputFolder, "..")); } - string defaultFolder = Path.GetFullPath(Configuration.OutputFolder); // if only the general output folder is given or it's the same as our output folder. Let's try to figure it out from given output folder if possible according to default folder structure: // Azure.ResourceManager.XXX \ src <- default sdk source folder // \ samples(or tests) \ Generated <- default sample output folder defined in msbuild - string normalizedFolder = defaultFolder.Trim('/', '\\').Replace('\\', '/'); - if (normalizedFolder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) - return Path.Combine(defaultFolder, ".."); - else if (normalizedFolder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || normalizedFolder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) - return Path.Combine(defaultFolder, "../..", SOURCE_DEFAULT_FOLDER_NAME); + if (folder.EndsWith(SOURCE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return FormatPath(Path.Combine(folder, "..")); + else if (folder.EndsWith(SAMPLE_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase) || folder.EndsWith(MOCK_TEST_DEFAULT_OUTPUT_PATH, StringComparison.InvariantCultureIgnoreCase)) + return FormatPath(Path.Combine(folder, "../..", SOURCE_DEFAULT_FOLDER_NAME)); else throw new InvalidOperationException("'sample-gen.source-path' is not configured and can't figure it out from give output-folder and sample-gen.output-folder"); } + private static string FormatPath(string? path) + { + if (string.IsNullOrEmpty(path)) + return path ?? ""; + return Path.GetFullPath(path.TrimEnd('/', '\\')).Replace("\\", "/"); + } + private static IDictionary> _addedProjectFilenames = new Dictionary>(); private static IDictionary> _overriddenProjectFilenames = new Dictionary>(); diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml index c20b232a04c..c2259cd1d79 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml @@ -11364,7 +11364,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVault.json responses: '200': body: @@ -11564,7 +11564,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVaultWithNetworkAcls.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVaultWithNetworkAcls.json responses: '200': body: @@ -11845,7 +11845,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateVault.json responses: '200': body: @@ -12126,7 +12126,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deleteVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deleteVault.json responses: '200': headers: &ref_793 {} @@ -12247,7 +12247,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getVault.json responses: '200': body: @@ -12435,7 +12435,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listKeysOnVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listKeysOnVault.json responses: '200': body: @@ -12559,7 +12559,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/validateVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/validateVault.json responses: '200': body: @@ -12682,7 +12682,7 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/disableVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/disableVault.json responses: '200': {} language: !Languages @@ -12870,7 +12870,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateAccessPoliciesAdd.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateAccessPoliciesAdd.json responses: '200': body: @@ -13016,7 +13016,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultByResourceGroup.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultByResourceGroup.json responses: '200': body: @@ -13195,7 +13195,7 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultBySubscription.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultBySubscription.json responses: '200': body: @@ -13362,7 +13362,7 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listDeletedVaults.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listDeletedVaults.json responses: '200': body: @@ -13498,7 +13498,7 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getDeletedVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getDeletedVault.json responses: '200': body: @@ -13633,7 +13633,7 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/purgeDeletedVault.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/purgeDeletedVault.json responses: '200': headers: &ref_881 {} @@ -13761,7 +13761,7 @@ operationGroups: vaultName: name: sample-vault type: Microsoft.KeyVault/vaults - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/checkVaultNameAvailability.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/checkVaultNameAvailability.json responses: '200': body: @@ -13912,7 +13912,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getPrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getPrivateEndpointConnection.json responses: '200': body: @@ -14111,7 +14111,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/putPrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/putPrivateEndpointConnection.json responses: '200': body: @@ -14289,7 +14289,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deletePrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deletePrivateEndpointConnection.json responses: '200': body: @@ -14419,7 +14419,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateEndpointConnection.json responses: '200': body: @@ -14576,7 +14576,7 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateLinkResources.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateLinkResources.json responses: '200': body: @@ -14727,7 +14727,7 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaaaaaaaaaaaaa - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json responses: '200': body: @@ -14751,7 +14751,7 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaa - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json responses: '200': body: @@ -14858,7 +14858,7 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json responses: '200': body: @@ -14880,7 +14880,7 @@ operationGroups: location: aaaa publisherName: aa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json responses: '200': body: @@ -15040,7 +15040,7 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json responses: '200': body: @@ -15063,7 +15063,7 @@ operationGroups: location: aaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json responses: '200': body: @@ -15234,7 +15234,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json responses: '200': body: @@ -15275,7 +15275,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json responses: '200': body: @@ -15321,7 +15321,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json responses: '200': body: @@ -15505,7 +15505,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json responses: '200': body: @@ -15551,7 +15551,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json responses: '200': body: @@ -15601,7 +15601,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json responses: '200': body: @@ -15742,7 +15742,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json responses: '200': body: @@ -15773,7 +15773,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json responses: '200': body: @@ -15896,7 +15896,7 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json responses: '200': {} '202': {} @@ -15989,7 +15989,7 @@ operationGroups: api-version: '2022-03-02' resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json responses: '200': body: @@ -16106,7 +16106,7 @@ operationGroups: parameters: api-version: '2022-03-02' subscriptionId: '{subscription-id}' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json responses: '200': body: @@ -16355,7 +16355,7 @@ operationGroups: Environment: dogfood resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json responses: '200': body: @@ -16566,7 +16566,7 @@ operationGroups: Slice: A resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Update.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Update.json responses: '200': body: @@ -16744,7 +16744,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Delete.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Delete.json responses: '200': {} '202': {} @@ -16883,7 +16883,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Get.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Get.json responses: '200': body: @@ -17026,7 +17026,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json responses: '200': body: @@ -17175,7 +17175,7 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json responses: '200': body: @@ -17312,7 +17312,7 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_List.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_List.json responses: '200': body: @@ -17461,7 +17461,7 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Get.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Get.json responses: '200': body: @@ -17588,7 +17588,7 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Purge.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Purge.json responses: '202': {} x-ms-long-running-operation: true @@ -17715,7 +17715,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json responses: '200': body: @@ -17878,7 +17878,7 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json responses: '200': body: @@ -18074,7 +18074,7 @@ operationGroups: status: Approved resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json responses: '200': body: @@ -18251,7 +18251,7 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json responses: '200': body: @@ -18389,7 +18389,7 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json responses: '200': body: @@ -18540,7 +18540,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyDelete.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyDelete.json responses: '200': {} '202': {} @@ -18675,7 +18675,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyGet.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyGet.json responses: '200': body: @@ -18966,7 +18966,7 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPut.json responses: '200': body: @@ -19169,7 +19169,7 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json responses: '200': body: @@ -19409,7 +19409,7 @@ operationGroups: api-version: '2021-02-01' resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json responses: '200': body: @@ -19528,7 +19528,7 @@ operationGroups: parameters: api-version: '2021-02-01' subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json responses: '200': body: @@ -19711,7 +19711,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json responses: '200': {} '202': {} @@ -19848,7 +19848,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json responses: '200': body: @@ -19886,7 +19886,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json responses: '200': body: @@ -19920,7 +19920,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json responses: '200': body: @@ -19954,7 +19954,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json responses: '200': body: @@ -20179,7 +20179,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json responses: '200': body: @@ -20265,7 +20265,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json responses: '200': body: @@ -20324,7 +20324,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json responses: '200': body: @@ -20402,7 +20402,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json responses: '200': body: @@ -20479,7 +20479,7 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json responses: '200': body: @@ -20649,7 +20649,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json responses: '200': body: @@ -20684,7 +20684,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json responses: '200': body: @@ -20719,7 +20719,7 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json responses: '200': body: @@ -20845,7 +20845,7 @@ operationGroups: Lists available Rest API operations.: parameters: api-version: '2021-10-01' - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listOperations.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listOperations.json responses: '200': body: @@ -21245,7 +21245,7 @@ operationGroups: resourceProviderNamespace: resourceProviderNamespace resourceType: resourceType subscriptionId: subId - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResource.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResource.json responses: '200': body: @@ -21364,7 +21364,7 @@ operationGroups: api-version: 2017-10-01-preview resourceGroupName: rgname subscriptionId: subId - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json responses: '200': body: @@ -21492,7 +21492,7 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentName scope: scope - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeleteRoleAssignmentByName.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeleteRoleAssignmentByName.json responses: '200': body: @@ -21645,7 +21645,7 @@ operationGroups: roleDefinitionId: /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/providers/Microsoft.Authorization/roleDefinitions/de139f84-1756-47ae-9be6-808fbbe84772 roleAssignmentName: roleAssignmentName scope: scope - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/PutRoleAssignment.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/PutRoleAssignment.json responses: '201': body: @@ -21759,7 +21759,7 @@ operationGroups: roleAssignmentName: roleAssignmentName scope: scope subscriptionId: subId - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByName.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByName.json responses: '200': body: @@ -21858,7 +21858,7 @@ operationGroups: parameters: api-version: 2017-10-01-preview subscriptionId: subId - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetAllRoleAssignments.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetAllRoleAssignments.json responses: '200': body: @@ -21944,7 +21944,7 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentId subscriptionId: subId - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ValidateRoleAssignment.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ValidateRoleAssignment.json responses: '200': {} language: !Languages @@ -22048,7 +22048,7 @@ operationGroups: parameters: api-version: 2017-10-01-preview scope: scope - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByScope.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByScope.json responses: '200': body: @@ -22193,7 +22193,7 @@ operationGroups: parameters: api-version: '2015-04-01' subscriptionId: 089bd33f-d4ec-47fe-8ba5-0753aa5c5b33 - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json responses: '200': body: @@ -22345,7 +22345,7 @@ operationGroups: location: West US vmSize: Large string: string - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/resources/CalculateTemplateHash.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/resources/CalculateTemplateHash.json responses: '200': body: @@ -22535,7 +22535,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json responses: '200': body: @@ -22705,7 +22705,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json responses: '200': body: @@ -22826,7 +22826,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json responses: '200': {} language: !Languages @@ -22930,7 +22930,7 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///C:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json + x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json responses: '200': body: From b18cabed6d3ec2250b5de321090e86cfeb9f8923 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Fri, 18 Aug 2023 23:37:52 +0800 Subject: [PATCH 6/6] avoid include original file for MgmtMockAndSample project --- .../tests/Generated/CodeModel.yaml | 255 ++++++------------ .../Sample_DeletedManagedHsmCollection.cs | 4 +- .../Sample_DeletedManagedHsmResource.cs | 4 +- .../Samples/Sample_DeletedVaultResource.cs | 2 +- .../Sample_DiskEncryptionSetCollection.cs | 16 +- .../Sample_DiskEncryptionSetResource.cs | 14 +- .../Sample_FirewallPolicyCollection.cs | 10 +- .../Samples/Sample_FirewallPolicyResource.cs | 10 +- ...wallPolicyRuleCollectionGroupCollection.cs | 32 +-- ...rewallPolicyRuleCollectionGroupResource.cs | 20 +- ..._GuestConfigurationAssignmentCollection.cs | 8 +- ...le_GuestConfigurationAssignmentResource.cs | 6 +- .../Samples/Sample_ManagedHsmCollection.cs | 8 +- .../Samples/Sample_ManagedHsmResource.cs | 10 +- ...mplePrivateEndpointConnectionCollection.cs | 8 +- ...SamplePrivateEndpointConnectionResource.cs | 6 +- ...MhsmPrivateEndpointConnectionCollection.cs | 8 +- ...e_MhsmPrivateEndpointConnectionResource.cs | 6 +- .../Sample_RoleAssignmentCollection.cs | 14 +- .../Samples/Sample_RoleAssignmentResource.cs | 8 +- .../Sample_SubscriptionResourceExtensions.cs | 4 +- .../Sample_TenantResourceExtensions.cs | 4 +- .../Samples/Sample_VaultCollection.cs | 10 +- .../Generated/Samples/Sample_VaultResource.cs | 18 +- ..._VirtualMachineExtensionImageCollection.cs | 16 +- ...le_VirtualMachineExtensionImageResource.cs | 4 +- .../MgmtMockAndSample/tests/readme.md | 1 + 27 files changed, 211 insertions(+), 295 deletions(-) diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml index c2259cd1d79..eea3a0fbf86 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/CodeModel.yaml @@ -11364,7 +11364,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVault.json responses: '200': body: @@ -11564,7 +11563,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/createVaultWithNetworkAcls.json responses: '200': body: @@ -11845,7 +11843,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateVault.json responses: '200': body: @@ -12126,7 +12123,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deleteVault.json responses: '200': headers: &ref_793 {} @@ -12247,7 +12243,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getVault.json responses: '200': body: @@ -12435,7 +12430,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listKeysOnVault.json responses: '200': body: @@ -12559,7 +12553,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/validateVault.json responses: '200': body: @@ -12682,7 +12675,6 @@ operationGroups: resourceGroupName: sample-resource-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/disableVault.json responses: '200': {} language: !Languages @@ -12870,7 +12862,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/updateAccessPoliciesAdd.json responses: '200': body: @@ -13016,7 +13007,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultByResourceGroup.json responses: '200': body: @@ -13195,7 +13185,6 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listVaultBySubscription.json responses: '200': body: @@ -13362,7 +13351,6 @@ operationGroups: $top: 1 api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listDeletedVaults.json responses: '200': body: @@ -13498,7 +13486,6 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getDeletedVault.json responses: '200': body: @@ -13633,7 +13620,6 @@ operationGroups: location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/purgeDeletedVault.json responses: '200': headers: &ref_881 {} @@ -13761,7 +13747,6 @@ operationGroups: vaultName: name: sample-vault type: Microsoft.KeyVault/vaults - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/checkVaultNameAvailability.json responses: '200': body: @@ -13912,7 +13897,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/getPrivateEndpointConnection.json responses: '200': body: @@ -14111,7 +14095,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/putPrivateEndpointConnection.json responses: '200': body: @@ -14289,7 +14272,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/deletePrivateEndpointConnection.json responses: '200': body: @@ -14419,7 +14401,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateEndpointConnection.json responses: '200': body: @@ -14576,7 +14557,6 @@ operationGroups: resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 vaultName: sample-vault - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listPrivateLinkResources.json responses: '200': body: @@ -14727,7 +14707,6 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaaaaaaaaaaaaa - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json responses: '200': body: @@ -14751,7 +14730,6 @@ operationGroups: publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' version: aaa - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json responses: '200': body: @@ -14858,7 +14836,6 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json responses: '200': body: @@ -14880,7 +14857,6 @@ operationGroups: location: aaaa publisherName: aa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json responses: '200': body: @@ -15040,7 +15016,6 @@ operationGroups: location: aaaaaaaaaaaaaaaaaaaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json responses: '200': body: @@ -15063,7 +15038,6 @@ operationGroups: location: aaaaaaaaa publisherName: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json responses: '200': body: @@ -15234,7 +15208,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json responses: '200': body: @@ -15275,7 +15248,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json responses: '200': body: @@ -15321,7 +15293,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json responses: '200': body: @@ -15505,7 +15476,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json responses: '200': body: @@ -15551,7 +15521,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json responses: '200': body: @@ -15601,7 +15570,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json responses: '200': body: @@ -15742,7 +15710,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json responses: '200': body: @@ -15773,7 +15740,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json responses: '200': body: @@ -15896,7 +15862,6 @@ operationGroups: diskEncryptionSetName: myDiskEncryptionSet resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json responses: '200': {} '202': {} @@ -15989,7 +15954,6 @@ operationGroups: api-version: '2022-03-02' resourceGroupName: myResourceGroup subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json responses: '200': body: @@ -16106,7 +16070,6 @@ operationGroups: parameters: api-version: '2022-03-02' subscriptionId: '{subscription-id}' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json responses: '200': body: @@ -16355,7 +16318,6 @@ operationGroups: Environment: dogfood resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json responses: '200': body: @@ -16566,7 +16528,6 @@ operationGroups: Slice: A resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Update.json responses: '200': body: @@ -16744,7 +16705,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Delete.json responses: '200': {} '202': {} @@ -16883,7 +16843,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_Get.json responses: '200': body: @@ -17026,7 +16985,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: hsm-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json responses: '200': body: @@ -17175,7 +17133,6 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json responses: '200': body: @@ -17312,7 +17269,6 @@ operationGroups: parameters: api-version: '2021-10-01' subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_List.json responses: '200': body: @@ -17461,7 +17417,6 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Get.json responses: '200': body: @@ -17588,7 +17543,6 @@ operationGroups: api-version: '2021-10-01' location: westus subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeletedManagedHsm_Purge.json responses: '202': {} x-ms-long-running-operation: true @@ -17715,7 +17669,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json responses: '200': body: @@ -17878,7 +17831,6 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json responses: '200': body: @@ -18074,7 +18026,6 @@ operationGroups: status: Approved resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json responses: '200': body: @@ -18251,7 +18202,6 @@ operationGroups: privateEndpointConnectionName: sample-pec resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json responses: '200': body: @@ -18389,7 +18339,6 @@ operationGroups: api-version: '2021-10-01' resourceGroupName: sample-group subscriptionId: 00000000-0000-0000-0000-000000000000 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json responses: '200': body: @@ -18540,7 +18489,6 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyDelete.json responses: '200': {} '202': {} @@ -18675,7 +18623,6 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyGet.json responses: '200': body: @@ -18966,7 +18913,6 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPut.json responses: '200': body: @@ -19169,7 +19115,6 @@ operationGroups: key1: value1 resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json responses: '200': body: @@ -19409,7 +19354,6 @@ operationGroups: api-version: '2021-02-01' resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json responses: '200': body: @@ -19528,7 +19472,6 @@ operationGroups: parameters: api-version: '2021-02-01' subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json responses: '200': body: @@ -19711,7 +19654,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json responses: '200': {} '202': {} @@ -19848,7 +19790,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json responses: '200': body: @@ -19886,7 +19827,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json responses: '200': body: @@ -19920,7 +19860,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json responses: '200': body: @@ -19954,7 +19893,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json responses: '200': body: @@ -20179,7 +20117,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json responses: '200': body: @@ -20265,7 +20202,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json responses: '200': body: @@ -20324,7 +20260,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json responses: '200': body: @@ -20402,7 +20337,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json responses: '200': body: @@ -20479,7 +20413,6 @@ operationGroups: resourceGroupName: rg1 ruleCollectionGroupName: ruleCollectionGroup1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json responses: '200': body: @@ -20649,7 +20582,6 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: e747cc13-97d4-4a79-b463-42d7f4e558f2 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json responses: '200': body: @@ -20684,7 +20616,6 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json responses: '200': body: @@ -20719,7 +20650,6 @@ operationGroups: firewallPolicyName: firewallPolicy resourceGroupName: rg1 subscriptionId: subid - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json responses: '200': body: @@ -20845,7 +20775,6 @@ operationGroups: Lists available Rest API operations.: parameters: api-version: '2021-10-01' - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/listOperations.json responses: '200': body: @@ -21245,7 +21174,6 @@ operationGroups: resourceProviderNamespace: resourceProviderNamespace resourceType: resourceType subscriptionId: subId - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResource.json responses: '200': body: @@ -21364,7 +21292,6 @@ operationGroups: api-version: 2017-10-01-preview resourceGroupName: rgname subscriptionId: subId - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json responses: '200': body: @@ -21492,7 +21419,6 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentName scope: scope - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/DeleteRoleAssignmentByName.json responses: '200': body: @@ -21645,7 +21571,6 @@ operationGroups: roleDefinitionId: /subscriptions/4004a9fd-d58e-48dc-aeb2-4a4aec58606f/providers/Microsoft.Authorization/roleDefinitions/de139f84-1756-47ae-9be6-808fbbe84772 roleAssignmentName: roleAssignmentName scope: scope - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/PutRoleAssignment.json responses: '201': body: @@ -21759,7 +21684,6 @@ operationGroups: roleAssignmentName: roleAssignmentName scope: scope subscriptionId: subId - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByName.json responses: '200': body: @@ -21858,7 +21782,6 @@ operationGroups: parameters: api-version: 2017-10-01-preview subscriptionId: subId - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetAllRoleAssignments.json responses: '200': body: @@ -21944,7 +21867,6 @@ operationGroups: api-version: 2017-10-01-preview roleAssignmentName: roleAssignmentId subscriptionId: subId - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/ValidateRoleAssignment.json responses: '200': {} language: !Languages @@ -22048,7 +21970,6 @@ operationGroups: parameters: api-version: 2017-10-01-preview scope: scope - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetRoleAssignmentByScope.json responses: '200': body: @@ -22193,7 +22114,6 @@ operationGroups: parameters: api-version: '2015-04-01' subscriptionId: 089bd33f-d4ec-47fe-8ba5-0753aa5c5b33 - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json responses: '200': body: @@ -22345,7 +22265,6 @@ operationGroups: location: West US vmSize: Large string: string - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/resources/CalculateTemplateHash.json responses: '200': body: @@ -22535,7 +22454,6 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json responses: '200': body: @@ -22705,7 +22623,6 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json responses: '200': body: @@ -22826,7 +22743,6 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json responses: '200': {} language: !Languages @@ -22930,7 +22846,6 @@ operationGroups: resourceGroupName: myResourceGroupName subscriptionId: mySubscriptionId vmName: myVMName - x-ms-original-file: file:///c:/git/rodgefu/autorest.csharp2/test/TestProjects/MgmtMockAndSample/specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json responses: '200': body: @@ -23193,7 +23108,7 @@ testModel: parameter: *ref_483 operation: *ref_762 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/createVault.json + originalFile: '' responses: '200': body: @@ -23867,7 +23782,7 @@ testModel: parameter: *ref_483 operation: *ref_762 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/createVaultWithNetworkAcls.json + originalFile: '' responses: '200': body: @@ -24320,7 +24235,7 @@ testModel: parameter: *ref_489 operation: *ref_788 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/updateVault.json + originalFile: '' responses: '200': body: @@ -24848,7 +24763,7 @@ testModel: parameter: *ref_791 operation: *ref_795 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/deleteVault.json + originalFile: '' responses: '200': headers: *ref_793 @@ -24883,7 +24798,7 @@ testModel: parameter: *ref_798 operation: *ref_801 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/getVault.json + originalFile: '' responses: '200': body: @@ -25123,7 +25038,7 @@ testModel: parameter: *ref_804 operation: *ref_810 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/listKeysOnVault.json + originalFile: '' responses: '200': body: @@ -25186,7 +25101,7 @@ testModel: parameter: *ref_813 operation: *ref_821 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/validateVault.json + originalFile: '' responses: '200': body: @@ -25261,7 +25176,7 @@ testModel: parameter: *ref_824 operation: *ref_826 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/disableVault.json + originalFile: '' responses: '200': {} operation: *ref_826 @@ -25347,7 +25262,7 @@ testModel: parameter: *ref_507 operation: *ref_839 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/updateAccessPoliciesAdd.json + originalFile: '' responses: '200': body: @@ -25492,7 +25407,7 @@ testModel: parameter: *ref_842 operation: *ref_848 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/listVaultByResourceGroup.json + originalFile: '' responses: '200': body: @@ -25738,7 +25653,7 @@ testModel: parameter: *ref_850 operation: *ref_853 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/listVaultBySubscription.json + originalFile: '' responses: '200': body: @@ -25979,7 +25894,7 @@ testModel: parameter: *ref_854 operation: *ref_869 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/listDeletedVaults.json + originalFile: '' responses: '200': body: @@ -26069,7 +25984,7 @@ testModel: parameter: *ref_872 operation: *ref_876 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/getDeletedVault.json + originalFile: '' responses: '200': body: @@ -26148,7 +26063,7 @@ testModel: parameter: *ref_879 operation: *ref_883 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/purgeDeletedVault.json + originalFile: '' responses: '200': headers: *ref_881 @@ -26187,7 +26102,7 @@ testModel: parameter: *ref_523 operation: *ref_891 operationGroup: *ref_763 - originalFile: specification/mockSwagger/examples/checkVaultNameAvailability.json + originalFile: '' responses: '200': body: @@ -26233,7 +26148,7 @@ testModel: parameter: *ref_895 operation: *ref_910 operationGroup: *ref_911 - originalFile: specification/mockSwagger/examples/getPrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -26350,7 +26265,7 @@ testModel: parameter: *ref_529 operation: *ref_919 operationGroup: *ref_911 - originalFile: specification/mockSwagger/examples/putPrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -26441,7 +26356,7 @@ testModel: parameter: *ref_923 operation: *ref_927 operationGroup: *ref_911 - originalFile: specification/mockSwagger/examples/deletePrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -26498,7 +26413,7 @@ testModel: parameter: *ref_930 operation: *ref_935 operationGroup: *ref_911 - originalFile: specification/mockSwagger/examples/listPrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -26647,7 +26562,7 @@ testModel: parameter: *ref_938 operation: *ref_948 operationGroup: *ref_949 - originalFile: specification/mockSwagger/examples/listPrivateLinkResources.json + originalFile: '' responses: '200': body: @@ -26732,7 +26647,7 @@ testModel: parameter: *ref_954 operation: *ref_969 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + originalFile: '' responses: '200': body: @@ -26823,7 +26738,7 @@ testModel: parameter: *ref_954 operation: *ref_969 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + originalFile: '' responses: '200': body: @@ -26868,7 +26783,7 @@ testModel: parameter: *ref_973 operation: *ref_976 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + originalFile: '' responses: '200': body: @@ -26951,7 +26866,7 @@ testModel: parameter: *ref_973 operation: *ref_976 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + originalFile: '' responses: '200': body: @@ -27018,7 +26933,7 @@ testModel: parameter: *ref_983 operation: *ref_986 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + originalFile: '' responses: '200': body: @@ -27106,7 +27021,7 @@ testModel: parameter: *ref_983 operation: *ref_986 operationGroup: *ref_970 - originalFile: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + originalFile: '' responses: '200': body: @@ -27192,7 +27107,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json + originalFile: '' responses: '200': body: @@ -27352,7 +27267,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json + originalFile: '' responses: '200': body: @@ -27534,7 +27449,7 @@ testModel: parameter: *ref_560 operation: *ref_1004 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json + originalFile: '' responses: '200': body: @@ -27704,7 +27619,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json + originalFile: '' responses: '200': body: @@ -27879,7 +27794,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json + originalFile: '' responses: '200': body: @@ -28071,7 +27986,7 @@ testModel: parameter: *ref_565 operation: *ref_1032 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json + originalFile: '' responses: '200': body: @@ -28232,7 +28147,7 @@ testModel: parameter: *ref_1038 operation: *ref_1041 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json + originalFile: '' responses: '200': body: @@ -28339,7 +28254,7 @@ testModel: parameter: *ref_1038 operation: *ref_1041 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json + originalFile: '' responses: '200': body: @@ -28445,7 +28360,7 @@ testModel: parameter: *ref_1044 operation: *ref_1046 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json + originalFile: '' responses: '200': {} '202': {} @@ -28474,7 +28389,7 @@ testModel: parameter: *ref_1048 operation: *ref_1053 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json + originalFile: '' responses: '200': body: @@ -28653,7 +28568,7 @@ testModel: parameter: *ref_1054 operation: *ref_1057 operationGroup: *ref_1005 - originalFile: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json + originalFile: '' responses: '200': body: @@ -28930,7 +28845,7 @@ testModel: parameter: *ref_575 operation: *ref_1090 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json + originalFile: '' responses: '200': body: @@ -29148,7 +29063,7 @@ testModel: parameter: *ref_580 operation: *ref_1099 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_Update.json + originalFile: '' responses: '200': body: @@ -29353,7 +29268,7 @@ testModel: parameter: *ref_1102 operation: *ref_1104 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_Delete.json + originalFile: '' responses: '200': {} '202': {} @@ -29387,7 +29302,7 @@ testModel: parameter: *ref_1107 operation: *ref_1111 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_Get.json + originalFile: '' responses: '200': body: @@ -29500,7 +29415,7 @@ testModel: parameter: *ref_1113 operation: *ref_1118 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json + originalFile: '' responses: '200': body: @@ -29697,7 +29612,7 @@ testModel: parameter: *ref_1119 operation: *ref_1122 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json + originalFile: '' responses: '200': body: @@ -29894,7 +29809,7 @@ testModel: parameter: *ref_1123 operation: *ref_1138 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/DeletedManagedHsm_List.json + originalFile: '' responses: '200': body: @@ -30039,7 +29954,7 @@ testModel: parameter: *ref_1141 operation: *ref_1144 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/DeletedManagedHsm_Get.json + originalFile: '' responses: '200': body: @@ -30123,7 +30038,7 @@ testModel: parameter: *ref_1147 operation: *ref_1149 operationGroup: *ref_1091 - originalFile: specification/mockSwagger/examples/DeletedManagedHsm_Purge.json + originalFile: '' responses: '202': {} operation: *ref_1149 @@ -30155,7 +30070,7 @@ testModel: parameter: *ref_598 operation: *ref_1168 operationGroup: *ref_1169 - originalFile: specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json + originalFile: '' responses: '200': body: @@ -30309,7 +30224,7 @@ testModel: parameter: *ref_1173 operation: *ref_1176 operationGroup: *ref_1169 - originalFile: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -30420,7 +30335,7 @@ testModel: parameter: *ref_603 operation: *ref_1184 operationGroup: *ref_1169 - originalFile: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -30507,7 +30422,7 @@ testModel: parameter: *ref_1188 operation: *ref_1192 operationGroup: *ref_1169 - originalFile: specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json + originalFile: '' responses: '200': body: @@ -30564,7 +30479,7 @@ testModel: parameter: *ref_1195 operation: *ref_1205 operationGroup: *ref_1206 - originalFile: specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json + originalFile: '' responses: '200': body: @@ -30639,7 +30554,7 @@ testModel: parameter: *ref_1209 operation: *ref_1211 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyDelete.json + originalFile: '' responses: '200': {} '202': {} @@ -30673,7 +30588,7 @@ testModel: parameter: *ref_1215 operation: *ref_1282 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyGet.json + originalFile: '' responses: '200': body: @@ -31255,7 +31170,7 @@ testModel: parameter: *ref_623 operation: *ref_1292 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyPut.json + originalFile: '' responses: '200': body: @@ -32112,7 +32027,7 @@ testModel: parameter: *ref_623 operation: *ref_1292 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json + originalFile: '' responses: '200': body: @@ -32709,7 +32624,7 @@ testModel: parameter: *ref_1294 operation: *ref_1298 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json + originalFile: '' responses: '200': body: @@ -32834,7 +32749,7 @@ testModel: parameter: *ref_1299 operation: *ref_1302 operationGroup: *ref_1212 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json + originalFile: '' responses: '200': body: @@ -32974,7 +32889,7 @@ testModel: parameter: *ref_1306 operation: *ref_1308 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json + originalFile: '' responses: '200': {} '202': {} @@ -33013,7 +32928,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json + originalFile: '' responses: '200': body: @@ -33155,7 +33070,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json + originalFile: '' responses: '200': body: @@ -33283,7 +33198,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + originalFile: '' responses: '200': body: @@ -33411,7 +33326,7 @@ testModel: parameter: *ref_1313 operation: *ref_1339 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + originalFile: '' responses: '200': body: @@ -33645,7 +33560,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json + originalFile: '' responses: '200': body: @@ -33971,7 +33886,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json + originalFile: '' responses: '200': body: @@ -34195,7 +34110,7 @@ testModel: parameter: *ref_1358 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json + originalFile: '' responses: '200': body: @@ -34504,7 +34419,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + originalFile: '' responses: '200': body: @@ -34804,7 +34719,7 @@ testModel: parameter: *ref_635 operation: *ref_1363 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + originalFile: '' responses: '200': body: @@ -35037,7 +34952,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + originalFile: '' responses: '200': body: @@ -35176,7 +35091,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json + originalFile: '' responses: '200': body: @@ -35310,7 +35225,7 @@ testModel: parameter: *ref_1366 operation: *ref_1370 operationGroup: *ref_1309 - originalFile: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + originalFile: '' responses: '200': body: @@ -35433,7 +35348,7 @@ testModel: parameter: *ref_1371 operation: *ref_1404 operationGroup: *ref_1405 - originalFile: specification/mockSwagger/examples/listOperations.json + originalFile: '' responses: '200': body: @@ -36489,7 +36404,7 @@ testModel: parameter: *ref_1411 operation: *ref_1426 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/GetRoleAssignmentsForResource.json + originalFile: '' responses: '200': body: @@ -36560,7 +36475,7 @@ testModel: parameter: *ref_1429 operation: *ref_1432 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json + originalFile: '' responses: '200': body: @@ -36631,7 +36546,7 @@ testModel: parameter: *ref_1435 operation: *ref_1438 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/DeleteRoleAssignmentByName.json + originalFile: '' responses: '200': body: @@ -36717,7 +36632,7 @@ testModel: parameter: *ref_658 operation: *ref_1451 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/PutRoleAssignment.json + originalFile: '' responses: '201': body: @@ -36781,7 +36696,7 @@ testModel: parameter: *ref_1454 operation: *ref_1457 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/GetRoleAssignmentByName.json + originalFile: '' responses: '200': body: @@ -36840,7 +36755,7 @@ testModel: parameter: *ref_1458 operation: *ref_1461 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/GetAllRoleAssignments.json + originalFile: '' responses: '200': body: @@ -36911,7 +36826,7 @@ testModel: parameter: *ref_665 operation: *ref_1465 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/ValidateRoleAssignment.json + originalFile: '' responses: '200': {} operation: *ref_1465 @@ -36933,7 +36848,7 @@ testModel: parameter: *ref_1467 operation: *ref_1470 operationGroup: *ref_1427 - originalFile: specification/mockSwagger/examples/GetRoleAssignmentByScope.json + originalFile: '' responses: '200': body: @@ -36994,7 +36909,7 @@ testModel: parameter: *ref_1471 operation: *ref_1481 operationGroup: *ref_1482 - originalFile: specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json + originalFile: '' responses: '200': body: @@ -37053,7 +36968,7 @@ testModel: parameter: *ref_675 operation: *ref_1490 operationGroup: *ref_1491 - originalFile: specification/mockSwagger/examples/resources/CalculateTemplateHash.json + originalFile: '' responses: '200': body: @@ -37128,7 +37043,7 @@ testModel: parameter: *ref_681 operation: *ref_1513 operationGroup: *ref_1514 - originalFile: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json + originalFile: '' responses: '200': body: @@ -37270,7 +37185,7 @@ testModel: parameter: *ref_1518 operation: *ref_1522 operationGroup: *ref_1514 - originalFile: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json + originalFile: '' responses: '200': body: @@ -37355,7 +37270,7 @@ testModel: parameter: *ref_1526 operation: *ref_1528 operationGroup: *ref_1514 - originalFile: specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json + originalFile: '' responses: '200': {} operation: *ref_1528 @@ -37387,7 +37302,7 @@ testModel: parameter: *ref_1531 operation: *ref_1535 operationGroup: *ref_1514 - originalFile: specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json + originalFile: '' responses: '200': body: diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs index 2fc63db9159..463d50b78f4 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedManagedHsmCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveADeletedManagedHSM() { - // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_RetrieveADeletedManagedHSM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveADeletedManagedHSM() { - // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs index e18b7aa1ff1..e7c65e45611 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedManagedHsmResource.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedManagedHsmResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveADeletedManagedHSM() { - // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_GetDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_RetrieveADeletedManagedHSM() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PurgeDeleted_PurgeAManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_Purge.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_PurgeDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs index 08b30e6a2b1..dfb6e42fd48 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DeletedVaultResource.cs @@ -22,7 +22,7 @@ public partial class Sample_DeletedVaultResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task PurgeDeleted_PurgeADeletedVault() { - // Generated from example definition: specification/mockSwagger/examples/purgeDeletedVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_PurgeDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs index eeed1007a48..ba24a24438b 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_DiskEncryptionSetCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADifferentSubscription() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentSubscription.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADiffer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADifferentTenant() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create_WithKeyVaultFromADifferentTenant.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSetWithKeyVaultFromADiffer [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Create.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task CreateOrUpdate_CreateADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +193,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -223,7 +223,7 @@ public async Task Exists_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotatio [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -257,7 +257,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Exists_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllDiskEncryptionSetsInAResourceGroup() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListByResourceGroup.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs index 649049a0d65..ca564d35a45 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_DiskEncryptionSetResource.cs @@ -25,7 +25,7 @@ public partial class Sample_DiskEncryptionSetResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueSucceeded() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabled.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -64,7 +64,7 @@ public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionE [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetToTrueUpdating() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update_WithRotationToLatestKeyVersionEnabledInProgress.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Update_UpdateADiskEncryptionSetWithRotationToLatestKeyVersionE [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Update.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Update_UpdateADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get_WithAutoKeyRotationError.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSetWhenAutoKeyRotationFa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetInformationAboutADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Get.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task Get_GetInformationAboutADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteADiskEncryptionSet() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_Delete.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -237,7 +237,7 @@ public async Task Delete_DeleteADiskEncryptionSet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDiskEncryptionSets_ListAllDiskEncryptionSetsInASubscription() { - // Generated from example definition: specification/mockSwagger/examples/diskEncryptionSetExamples/DiskEncryptionSet_ListBySubscription.json + // Generated from example definition: // this example is just showing the usage of "DiskEncryptionSets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs index 6fd2d762ec9..e0ef98d0eff 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyCollection.cs @@ -25,7 +25,7 @@ public partial class Sample_FirewallPolicyCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -226,7 +226,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyWithDifferentValues() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -363,7 +363,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyWithDifferentValues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPoliciesForAGivenResourceGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyListByResourceGroup.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs index 363f4c636e2..e7d43d64744 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyResource.cs @@ -25,7 +25,7 @@ public partial class Sample_FirewallPolicyResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyDelete.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Delete_DeleteFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task Update_CreateFirewallPolicy() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyWithDifferentValues() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyPutWithCustomizedEnumValue.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -351,7 +351,7 @@ public async Task Update_CreateFirewallPolicyWithDifferentValues() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscription() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyListBySubscription.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs index d4f9f240929..0cd5b585743 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -124,7 +124,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -364,7 +364,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -436,7 +436,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultValues() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -473,7 +473,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithAllD [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -544,7 +544,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIpGr [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -616,7 +616,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebC [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -653,7 +653,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategori [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupList.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -690,7 +690,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirew [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs index 1823863e6cb..32749b333d3 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupDelete.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -322,7 +322,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultValues() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithDefaultsPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -356,7 +356,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithAllDefaultVa [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -424,7 +424,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIpGroups() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/mockSwagger/examples/network/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs index 4548fefbe1f..7ad3650c99a 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_GuestConfigurationAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_CreateOrUpdateGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -101,7 +101,7 @@ public async Task Get_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task Exists_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListAllGuestConfigurationAssignmentsForAVirtualMachine() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/listGuestConfigurationAssignments.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs index 8fc3c88448d..547da5c93a4 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_GuestConfigurationAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_GuestConfigurationAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateOrUpdateGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/createOrUpdateGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task Update_CreateOrUpdateGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/getGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_GetAGuestConfigurationAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAnGuestConfigurationAssignment() { - // Generated from example definition: specification/mockSwagger/examples/guestconfiguration/deleteGuestConfigurationAssignment.json + // Generated from example definition: // this example is just showing the usage of "GuestConfigurationAssignments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs index a11284c8eee..41c55ea9add 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_ManagedHsmCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateANewManagedHSMPoolOrUpdateAnExistingManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_CreateOrUpdate.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task CreateOrUpdate_CreateANewManagedHSMPoolOrUpdateAnExistingManag [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Get_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveAManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Exists_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedHSMPoolsInAResourceGroup() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListByResourceGroup.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs index 724d50a7223..ae776476d13 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_ManagedHsmResource.cs @@ -24,7 +24,7 @@ public partial class Sample_ManagedHsmResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAnExistingManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Update.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -65,7 +65,7 @@ public async Task Update_UpdateAnExistingManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Delete.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Delete_DeleteAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAManagedHSMPool() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_Get.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Get_RetrieveAManagedHSMPool() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetManagedHsms_ListManagedHSMPoolsInASubscription() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListBySubscription.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task GetManagedHsms_ListManagedHSMPoolsInASubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetMHSMPrivateLinkResourcesByMhsmResource_KeyVaultListPrivateLinkResources() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_listPrivateLinkResources.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateLinkResources_ListByMHSMResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs index 36ce2413c97..f41b4a7cafe 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MgmtMockAndSamplePrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Exists_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_KeyVaultPutPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/putPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_KeyVaultPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_KeyVaultListPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/listPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_ListByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs index a4ebf043d0a..2830b8a7a13 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MgmtMockAndSamplePrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_MgmtMockAndSamplePrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_KeyVaultGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_KeyVaultGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_KeyVaultPutPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/putPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Update_KeyVaultPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_KeyVaultDeletePrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/deletePrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs index b7b27b3aa62..1e9eb86b72d 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_MhsmPrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListManagedHSMPoolsInASubscription() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_ListByResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_ListManagedHSMPoolsInASubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_ManagedHsmPutPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs index 15fa444f820..285bea10955 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_MhsmPrivateEndpointConnectionResource.cs @@ -23,7 +23,7 @@ public partial class Sample_MhsmPrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_ManagedHsmGetPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_getPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ManagedHsmGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_ManagedHsmPutPrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_putPrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Update_ManagedHsmPutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_ManagedHsmDeletePrivateEndpointConnection() { - // Generated from example definition: specification/mockSwagger/examples/ManagedHsm_deletePrivateEndpointConnection.json + // Generated from example definition: // this example is just showing the usage of "MHSMPrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs index ef64b0b981b..0c08353fe1f 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_RoleAssignmentCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForResource() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentsForResource.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_ListForResource" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task GetAll_ListRoleAssignmentsForResource() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForResourceGroup() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentsForResourceGroup.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_ListForResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task GetAll_ListRoleAssignmentsForResourceGroup() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateRoleAssignment() { - // Generated from example definition: specification/mockSwagger/examples/PutRoleAssignment.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -136,7 +136,7 @@ public async Task CreateOrUpdate_CreateRoleAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoleAssignmentByName() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task Get_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetRoleAssignmentByName() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -196,7 +196,7 @@ public async Task Exists_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForSubscription() { - // Generated from example definition: specification/mockSwagger/examples/GetAllRoleAssignments.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetAll_ListRoleAssignmentsForSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListRoleAssignmentsForScope() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByScope.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_ListForScope" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs index 6fd0bcd4c85..7168cea43f2 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_RoleAssignmentResource.cs @@ -23,7 +23,7 @@ public partial class Sample_RoleAssignmentResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteRoleAssignmentByName() { - // Generated from example definition: specification/mockSwagger/examples/DeleteRoleAssignmentByName.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Delete_DeleteRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_CreateRoleAssignment() { - // Generated from example definition: specification/mockSwagger/examples/PutRoleAssignment.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_CreateRoleAssignment() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetRoleAssignmentByName() { - // Generated from example definition: specification/mockSwagger/examples/GetRoleAssignmentByName.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -121,7 +121,7 @@ public async Task Get_GetRoleAssignmentByName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Validate_ValidateRoleAssignmentsForSubscription() { - // Generated from example definition: specification/mockSwagger/examples/ValidateRoleAssignment.json + // Generated from example definition: // this example is just showing the usage of "RoleAssignments_Validate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index cbe0444307a..c011da638f9 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -22,7 +22,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDeletedVaults_ListDeletedVaultsInTheSpecifiedSubscription() { - // Generated from example definition: specification/mockSwagger/examples/listDeletedVaults.json + // Generated from example definition: // this example is just showing the usage of "Vaults_ListDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task GetDeletedVaults_ListDeletedVaultsInTheSpecifiedSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetDeletedManagedHsms_ListDeletedManagedHSMsInTheSpecifiedSubscription() { - // Generated from example definition: specification/mockSwagger/examples/DeletedManagedHsm_List.json + // Generated from example definition: // this example is just showing the usage of "ManagedHsms_ListDeleted" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs index adddb7fc5b4..2d2469c777d 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_TenantResourceExtensions.cs @@ -23,7 +23,7 @@ public partial class Sample_TenantResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTenantActivityLogs_GetTenantActivityLogsWithoutFilterOrSelect() { - // Generated from example definition: specification/mockSwagger/examples/GetTenantActivityLogsNoParams.json + // Generated from example definition: // this example is just showing the usage of "TenantActivityLogs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task GetTenantActivityLogs_GetTenantActivityLogsWithoutFilterOrSele [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CalculateTemplateHashDeployment_CalculateTemplateHash() { - // Generated from example definition: specification/mockSwagger/examples/resources/CalculateTemplateHash.json + // Generated from example definition: // this example is just showing the usage of "Deployments_CalculateTemplateHash" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs index 6dec2a4b18a..14bfc271881 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultCollection.cs @@ -26,7 +26,7 @@ public partial class Sample_VaultCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateANewVaultOrUpdateAnExistingVault() { - // Generated from example definition: specification/mockSwagger/examples/createVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_CreateANewVaultOrUpdateAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_CreateOrUpdateAVaultWithNetworkAcls() { - // Generated from example definition: specification/mockSwagger/examples/createVaultWithNetworkAcls.json + // Generated from example definition: // this example is just showing the usage of "Vaults_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAVaultWithNetworkAcls() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAVault() { - // Generated from example definition: specification/mockSwagger/examples/getVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task Get_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RetrieveAVault() { - // Generated from example definition: specification/mockSwagger/examples/getVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task Exists_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_ListVaultsInTheSpecifiedResourceGroup() { - // Generated from example definition: specification/mockSwagger/examples/listVaultByResourceGroup.json + // Generated from example definition: // this example is just showing the usage of "Vaults_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs index aa3ff288e79..3287cd250ac 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VaultResource.cs @@ -24,7 +24,7 @@ public partial class Sample_VaultResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAVault() { - // Generated from example definition: specification/mockSwagger/examples/deleteVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Delete_DeleteAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RetrieveAVault() { - // Generated from example definition: specification/mockSwagger/examples/getVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_RetrieveAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_ListKeysOnAnExistingVault() { - // Generated from example definition: specification/mockSwagger/examples/listKeysOnVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -112,7 +112,7 @@ public async Task GetKeys_ListKeysOnAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Validate_ValidateAnExistingVault() { - // Generated from example definition: specification/mockSwagger/examples/validateVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Validate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Validate_ValidateAnExistingVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Disable_DisableAVault() { - // Generated from example definition: specification/mockSwagger/examples/disableVault.json + // Generated from example definition: // this example is just showing the usage of "Vaults_Disable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -166,7 +166,7 @@ public async Task Disable_DisableAVault() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task UpdateAccessPolicy_AddAnAccessPolicyOrUpdateAnAccessPolicyWithNewPermissions() { - // Generated from example definition: specification/mockSwagger/examples/updateAccessPoliciesAdd.json + // Generated from example definition: // this example is just showing the usage of "Vaults_UpdateAccessPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -212,7 +212,7 @@ public async Task UpdateAccessPolicy_AddAnAccessPolicyOrUpdateAnAccessPolicyWith [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetVaults_ListVaultsInTheSpecifiedSubscription() { - // Generated from example definition: specification/mockSwagger/examples/listVaultBySubscription.json + // Generated from example definition: // this example is just showing the usage of "Vaults_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task GetVaults_ListVaultsInTheSpecifiedSubscription() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CheckNameAvailabilityVault_ValidateAVaultName() { - // Generated from example definition: specification/mockSwagger/examples/checkVaultNameAvailability.json + // Generated from example definition: // this example is just showing the usage of "Vaults_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -271,7 +271,7 @@ public async Task CheckNameAvailabilityVault_ValidateAVaultName() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResources_KeyVaultListPrivateLinkResources() { - // Generated from example definition: specification/mockSwagger/examples/listPrivateLinkResources.json + // Generated from example definition: // this example is just showing the usage of "PrivateLinkResources_ListByVault" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs index 6e2d3d22946..8375d93db02 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualMachineExtensionImageCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Exists_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -158,7 +158,7 @@ public async Task Exists_VirtualMachineExtensionImagesGetMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MaximumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListTypes_MinimumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_ListTypes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +232,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListTypesMinimumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MaximumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -273,7 +273,7 @@ public async Task GetAll_VirtualMachineExtensionImagesListVersionsMaximumSetGen( [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_VirtualMachineExtensionImagesListVersionsMinimumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_ListVersions_MinimumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_ListVersions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs index c68be868847..fffb66f4ced 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs +++ b/test/TestProjects/MgmtMockAndSample/tests/Generated/Samples/Sample_VirtualMachineExtensionImageResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualMachineExtensionImageResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MaximumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualMachineExtensionImagesGetMaximumSetGen() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_VirtualMachineExtensionImagesGetMinimumSetGen() { - // Generated from example definition: specification/mockSwagger/examples/virtualMachineExtensionImageExamples/VirtualMachineExtensionImages_Get_MinimumSet_Gen.json + // Generated from example definition: // this example is just showing the usage of "VirtualMachineExtensionImages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/test/TestProjects/MgmtMockAndSample/tests/readme.md b/test/TestProjects/MgmtMockAndSample/tests/readme.md index 2733bf34f79..07e7839eaa0 100644 --- a/test/TestProjects/MgmtMockAndSample/tests/readme.md +++ b/test/TestProjects/MgmtMockAndSample/tests/readme.md @@ -5,6 +5,7 @@ ``` yaml require: ../src/readme.md +include-x-ms-examples-original-file: false mgmt-debug: skip-codegen: true sample-gen: