From 62c249add2544ab5d2ca823f34f2e61e909eb9c0 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Wed, 17 Nov 2021 13:20:14 -0800 Subject: [PATCH 1/3] Rename LLC to Dataplane Code Gen --- .../Azure.Template.DataplaneCodeGen.sln} | 4 ++-- .../Azure.Template.DataplaneCodeGen}/CHANGELOG.md | 0 .../Directory.Build.props | 0 .../Azure.Template.DataplaneCodeGen}/README.md | 6 +++--- .../Azure.Template.DataplaneCodeGen.netstandard2.0.cs} | 6 +++--- .../src/Azure.Template.DataplaneCodeGen.csproj} | 4 ++-- .../src/Generated/TemplateServiceClient.cs | 4 ++-- .../src/Generated/TemplateServiceClientOptions.cs | 2 +- .../src/GlobalSuppressions.cs | 0 .../Azure.Template.DataplaneCodeGen}/src/autorest.md | 6 +++--- .../src/properties/AssemblyInfo.cs | 2 +- .../src/swagger/swagger.json | 0 .../Azure.Template.DataplaneCodeGen.Tests.csproj} | 2 +- .../tests/Samples/TemplateServiceSamples.HelloWorld.cs | 4 ++-- .../tests/SerializationHelpers.cs | 2 +- .../tests/TemplateServiceLiveTests.cs | 2 +- .../tests/TemplateServiceTestEnvironment.cs | 2 +- .../tests/TemplateServiceTests.cs | 2 +- .../Directory.Build.props | 0 sdk/{template-LLC => template-dataplanecodegen}/ci.yml | 10 +++++----- .../test-resources.json | 0 .../tests.yml | 2 +- 22 files changed, 30 insertions(+), 30 deletions(-) rename sdk/{template-LLC/Azure.Template.LLC/Azure.Template.LLC.sln => template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln} (89%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/CHANGELOG.md (100%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/Directory.Build.props (100%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/README.md (94%) rename sdk/{template-LLC/Azure.Template.LLC/api/Azure.Template.LLC.netstandard2.0.cs => template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs} (80%) rename sdk/{template-LLC/Azure.Template.LLC/src/Azure.Template.LLC.csproj => template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj} (85%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/Generated/TemplateServiceClient.cs (99%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/Generated/TemplateServiceClientOptions.cs (96%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/GlobalSuppressions.cs (100%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/autorest.md (59%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/properties/AssemblyInfo.cs (60%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/src/swagger/swagger.json (100%) rename sdk/{template-LLC/Azure.Template.LLC/tests/Azure.Template.LLC.Tests.csproj => template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj} (93%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/tests/Samples/TemplateServiceSamples.HelloWorld.cs (96%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/tests/SerializationHelpers.cs (92%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/tests/TemplateServiceLiveTests.cs (95%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/tests/TemplateServiceTestEnvironment.cs (85%) rename sdk/{template-LLC/Azure.Template.LLC => template-dataplanecodegen/Azure.Template.DataplaneCodeGen}/tests/TemplateServiceTests.cs (98%) rename sdk/{template-LLC => template-dataplanecodegen}/Directory.Build.props (100%) rename sdk/{template-LLC => template-dataplanecodegen}/ci.yml (67%) rename sdk/{template-LLC => template-dataplanecodegen}/test-resources.json (100%) rename sdk/{template-LLC => template-dataplanecodegen}/tests.yml (74%) diff --git a/sdk/template-LLC/Azure.Template.LLC/Azure.Template.LLC.sln b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln similarity index 89% rename from sdk/template-LLC/Azure.Template.LLC/Azure.Template.LLC.sln rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln index 7652d3cd40869..6fec7aee48990 100644 --- a/sdk/template-LLC/Azure.Template.LLC/Azure.Template.LLC.sln +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln @@ -5,9 +5,9 @@ VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{8052009B-2126-44A3-88CD-4F3B17894C64}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.LLC", "src\Azure.Template.LLC.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.DataplaneCodeGen", "src\Azure.Template.DataplaneCodeGen.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.LLC.Tests", "tests\Azure.Template.LLC.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.DataplaneCodeGen.Tests", "tests\Azure.Template.DataplaneCodeGen.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/sdk/template-LLC/Azure.Template.LLC/CHANGELOG.md b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/CHANGELOG.md similarity index 100% rename from sdk/template-LLC/Azure.Template.LLC/CHANGELOG.md rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/CHANGELOG.md diff --git a/sdk/template-LLC/Azure.Template.LLC/Directory.Build.props b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Directory.Build.props similarity index 100% rename from sdk/template-LLC/Azure.Template.LLC/Directory.Build.props rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Directory.Build.props diff --git a/sdk/template-LLC/Azure.Template.LLC/README.md b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md similarity index 94% rename from sdk/template-LLC/Azure.Template.LLC/README.md rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md index 7f35dde2c599b..a9ff6de455385 100644 --- a/sdk/template-LLC/Azure.Template.LLC/README.md +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md @@ -1,6 +1,6 @@ # README.md template -Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.LLC/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-LLC/Azure.Template.LLC/README.md) for an example following this template. +Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.DataplaneCodeGen/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md) for an example following this template. **Title**: The H1 of your README should be in the format: `# [Product Name] client library for [Language]` @@ -16,7 +16,7 @@ Use the guidelines in each section of this template to ensure consistency and re * Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. * Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary: - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-LLC/Azure.Template.LLC/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) > TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. @@ -40,7 +40,7 @@ If your library requires authentication for use, such as for Azure services, inc For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. -```C# Snippet:TemplateLLCAuthenticate +```C# Snippet:TemplateServiceAuthenticate var serviceClient = new TemplateServiceClient(new DefaultAzureCredential(), new Uri(endpoint)); ``` diff --git a/sdk/template-LLC/Azure.Template.LLC/api/Azure.Template.LLC.netstandard2.0.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs similarity index 80% rename from sdk/template-LLC/Azure.Template.LLC/api/Azure.Template.LLC.netstandard2.0.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs index 2b03195508a21..fe4be14931927 100644 --- a/sdk/template-LLC/Azure.Template.LLC/api/Azure.Template.LLC.netstandard2.0.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs @@ -1,9 +1,9 @@ -namespace Azure.Template.LLC +namespace Azure.Template.DataplaneCodeGen { public partial class TemplateServiceClient { protected TemplateServiceClient() { } - public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.LLC.TemplateServiceClientOptions options = null) { } + public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -16,7 +16,7 @@ public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri e } public partial class TemplateServiceClientOptions : Azure.Core.ClientOptions { - public TemplateServiceClientOptions(Azure.Template.LLC.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.LLC.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } + public TemplateServiceClientOptions(Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } public enum ServiceVersion { V1_0_0 = 1, diff --git a/sdk/template-LLC/Azure.Template.LLC/src/Azure.Template.LLC.csproj b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj similarity index 85% rename from sdk/template-LLC/Azure.Template.LLC/src/Azure.Template.LLC.csproj rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj index d04ee2109b6b7..458f146b55f61 100644 --- a/sdk/template-LLC/Azure.Template.LLC/src/Azure.Template.LLC.csproj +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj @@ -1,7 +1,7 @@ - This is a LLC template project to demonstrate how to create a package that uses code generation as well as use for testing our build and release pipelines - Azure SDK LLC Template + This is a Dataplane Code Gen template project to demonstrate how to create a package that uses code generation as well as use for testing our build and release pipelines + Azure SDK Dataplane Code Gen Template 1.0.0-beta.1 Azure Template $(RequiredTargetFrameworks) diff --git a/sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClient.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs similarity index 99% rename from sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClient.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs index 36414f10e2d51..4b9911b531127 100644 --- a/sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClient.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs @@ -14,12 +14,12 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.Template.LLC +namespace Azure.Template.DataplaneCodeGen { /// The TemplateService service client. public partial class TemplateServiceClient { - private static readonly string[] AuthorizationScopes = new string[] { "https://dev.LLCtemplate.net/.default" }; + private static readonly string[] AuthorizationScopes = new string[] { "https://dev.dataplaneCodeGenTemplate.net/.default" }; private readonly TokenCredential _tokenCredential; private readonly HttpPipeline _pipeline; private readonly ClientDiagnostics _clientDiagnostics; diff --git a/sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClientOptions.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs similarity index 96% rename from sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClientOptions.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs index 8cc3f1a29cef1..77c9617d28b26 100644 --- a/sdk/template-LLC/Azure.Template.LLC/src/Generated/TemplateServiceClientOptions.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs @@ -8,7 +8,7 @@ using System; using Azure.Core; -namespace Azure.Template.LLC +namespace Azure.Template.DataplaneCodeGen { /// Client options for TemplateServiceClient. public partial class TemplateServiceClientOptions : ClientOptions diff --git a/sdk/template-LLC/Azure.Template.LLC/src/GlobalSuppressions.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/GlobalSuppressions.cs similarity index 100% rename from sdk/template-LLC/Azure.Template.LLC/src/GlobalSuppressions.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/GlobalSuppressions.cs diff --git a/sdk/template-LLC/Azure.Template.LLC/src/autorest.md b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md similarity index 59% rename from sdk/template-LLC/Azure.Template.LLC/src/autorest.md rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md index d9856739399b5..2a6a38cb9f3ed 100644 --- a/sdk/template-LLC/Azure.Template.LLC/src/autorest.md +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md @@ -1,4 +1,4 @@ -# Azure.Template.LLC Code Generation +# Azure.Template.DataplaneCodeGen Code Generation Run `dotnet build /t:GenerateCode` to generate code. @@ -8,9 +8,9 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml input-file: - $(this-folder)/swagger/swagger.json -namespace: Azure.Template.LLC +namespace: Azure.Template.DataplaneCodeGen public-clients: true low-level-client: true security: AADToken -security-scopes: https://dev.LLCtemplate.net/.default +security-scopes: https://dev.dataplaneCodeGenTemplate.net/.default ``` diff --git a/sdk/template-LLC/Azure.Template.LLC/src/properties/AssemblyInfo.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs similarity index 60% rename from sdk/template-LLC/Azure.Template.LLC/src/properties/AssemblyInfo.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs index 6283c032d1b89..56ff2aa44209d 100644 --- a/sdk/template-LLC/Azure.Template.LLC/src/properties/AssemblyInfo.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs @@ -5,7 +5,7 @@ // Replace with test project/test project public key and uncomment to make internal members visible to // your test project. If not needed, this can be deleted. -// [assembly: InternalsVisibleTo("Azure.Template.LLC.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] +// [assembly: InternalsVisibleTo("Azure.Template.DataplaneCodeGen.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] // Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. // See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers diff --git a/sdk/template-LLC/Azure.Template.LLC/src/swagger/swagger.json b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/swagger/swagger.json similarity index 100% rename from sdk/template-LLC/Azure.Template.LLC/src/swagger/swagger.json rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/swagger/swagger.json diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/Azure.Template.LLC.Tests.csproj b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj similarity index 93% rename from sdk/template-LLC/Azure.Template.LLC/tests/Azure.Template.LLC.Tests.csproj rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj index 07988f8092ae5..a5f9baa963270 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/Azure.Template.LLC.Tests.csproj +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/Samples/TemplateServiceSamples.HelloWorld.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs similarity index 96% rename from sdk/template-LLC/Azure.Template.LLC/tests/Samples/TemplateServiceSamples.HelloWorld.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs index 3b25c0fb469c9..0320b50103f88 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/Samples/TemplateServiceSamples.HelloWorld.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs @@ -9,7 +9,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.LLC.Tests.Samples +namespace Azure.Template.DataplaneCodeGen.Tests.Samples { public class TemplateServiceSamples : SamplesBase { @@ -17,7 +17,7 @@ public TemplateServiceClient GetClient() { var endpoint = TestEnvironment.Endpoint; - #region Snippet:TemplateLLCAuthenticate + #region Snippet:TemplateServiceAuthenticate var serviceClient = new TemplateServiceClient(new DefaultAzureCredential(), new Uri(endpoint)); #endregion diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/SerializationHelpers.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs similarity index 92% rename from sdk/template-LLC/Azure.Template.LLC/tests/SerializationHelpers.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs index f0563073dbd95..07ef223c9aac0 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/SerializationHelpers.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs @@ -4,7 +4,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Template.LLC.Tests +namespace Azure.Template.DataplaneCodeGen.Tests { internal class SerializationHelpers { diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceLiveTests.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs similarity index 95% rename from sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceLiveTests.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs index 22998b737fa09..4252e9cc81c7f 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceLiveTests.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs @@ -6,7 +6,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.LLC.Tests +namespace Azure.Template.DataplaneCodeGen.Tests { public class TemplateServiceLiveTests: RecordedTestBase { diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTestEnvironment.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs similarity index 85% rename from sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTestEnvironment.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs index 4f6d0690bd958..a2714d82e6b60 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTestEnvironment.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs @@ -3,7 +3,7 @@ using Azure.Core.TestFramework; -namespace Azure.Template.LLC.Tests +namespace Azure.Template.DataplaneCodeGen.Tests { public class TemplateServiceTestEnvironment : TestEnvironment { diff --git a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTests.cs b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs similarity index 98% rename from sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTests.cs rename to sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs index 8febfe402db1c..eb112fefbdc20 100644 --- a/sdk/template-LLC/Azure.Template.LLC/tests/TemplateServiceTests.cs +++ b/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs @@ -8,7 +8,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.LLC.Tests +namespace Azure.Template.DataplaneCodeGen.Tests { public class TemplateServiceTests { diff --git a/sdk/template-LLC/Directory.Build.props b/sdk/template-dataplanecodegen/Directory.Build.props similarity index 100% rename from sdk/template-LLC/Directory.Build.props rename to sdk/template-dataplanecodegen/Directory.Build.props diff --git a/sdk/template-LLC/ci.yml b/sdk/template-dataplanecodegen/ci.yml similarity index 67% rename from sdk/template-LLC/ci.yml rename to sdk/template-dataplanecodegen/ci.yml index cebdfaee3bb0a..27396fdf8e32b 100644 --- a/sdk/template-LLC/ci.yml +++ b/sdk/template-dataplanecodegen/ci.yml @@ -7,7 +7,7 @@ trigger: - release/* paths: include: - - sdk/template-LLC/ + - sdk/template-dataplanecodegen/ pr: branches: @@ -18,13 +18,13 @@ pr: - release/* paths: include: - - sdk/template-LLC/ + - sdk/template-dataplanecodegen/ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: - ServiceDirectory: template-LLC + ServiceDirectory: template-dataplanecodegen ArtifactName: packages Artifacts: - - name: Azure.Template.LLC - safeName: AzureTemplateLLC + - name: Azure.Template.DataplaneCodeGen + safeName: AzureTemplateDataplaneCodeGen diff --git a/sdk/template-LLC/test-resources.json b/sdk/template-dataplanecodegen/test-resources.json similarity index 100% rename from sdk/template-LLC/test-resources.json rename to sdk/template-dataplanecodegen/test-resources.json diff --git a/sdk/template-LLC/tests.yml b/sdk/template-dataplanecodegen/tests.yml similarity index 74% rename from sdk/template-LLC/tests.yml rename to sdk/template-dataplanecodegen/tests.yml index 4bba3d99243ad..dba8eb96526a6 100644 --- a/sdk/template-LLC/tests.yml +++ b/sdk/template-dataplanecodegen/tests.yml @@ -3,5 +3,5 @@ trigger: none extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: - ServiceDirectory: template-LLC + ServiceDirectory: template-dataplanecodegen SupportedClouds: 'Public' From ef9b10ec796f94b59ded85450397a5663c1fa062 Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Thu, 18 Nov 2021 11:25:37 -0800 Subject: [PATCH 2/3] Feedback --- .../Azure.Template.Generation.sln} | 4 ++-- .../Azure.Template.Generation}/CHANGELOG.md | 0 .../Azure.Template.Generation}/Directory.Build.props | 0 .../Azure.Template.Generation}/README.md | 4 ++-- .../api/Azure.Template.Generation.netstandard2.0.cs} | 6 +++--- .../src/Azure.Template.Generation.csproj} | 4 ++-- .../src/Generated/TemplateServiceClient.cs | 4 ++-- .../src/Generated/TemplateServiceClientOptions.cs | 2 +- .../src/GlobalSuppressions.cs | 0 .../Azure.Template.Generation}/src/autorest.md | 6 +++--- .../src/properties/AssemblyInfo.cs | 2 +- .../src/swagger/swagger.json | 0 .../tests/Azure.Template.Generation.Tests.csproj} | 2 +- .../tests/Samples/TemplateServiceSamples.HelloWorld.cs | 2 +- .../tests/SerializationHelpers.cs | 2 +- .../tests/TemplateServiceLiveTests.cs | 2 +- .../tests/TemplateServiceTestEnvironment.cs | 2 +- .../tests/TemplateServiceTests.cs | 2 +- .../Directory.Build.props | 0 sdk/{template-dataplanecodegen => template-dpg}/ci.yml | 10 +++++----- .../test-resources.json | 0 .../tests.yml | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln => template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln} (89%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/CHANGELOG.md (100%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/Directory.Build.props (100%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/README.md (94%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs => template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs} (80%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj => template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj} (79%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/Generated/TemplateServiceClient.cs (99%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/Generated/TemplateServiceClientOptions.cs (96%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/GlobalSuppressions.cs (100%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/autorest.md (59%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/properties/AssemblyInfo.cs (60%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/src/swagger/swagger.json (100%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj => template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj} (93%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/tests/Samples/TemplateServiceSamples.HelloWorld.cs (98%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/tests/SerializationHelpers.cs (92%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/tests/TemplateServiceLiveTests.cs (95%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/tests/TemplateServiceTestEnvironment.cs (85%) rename sdk/{template-dataplanecodegen/Azure.Template.DataplaneCodeGen => template-dpg/Azure.Template.Generation}/tests/TemplateServiceTests.cs (98%) rename sdk/{template-dataplanecodegen => template-dpg}/Directory.Build.props (100%) rename sdk/{template-dataplanecodegen => template-dpg}/ci.yml (67%) rename sdk/{template-dataplanecodegen => template-dpg}/test-resources.json (100%) rename sdk/{template-dataplanecodegen => template-dpg}/tests.yml (74%) diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln b/sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln similarity index 89% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln rename to sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln index 6fec7aee48990..ef25fc75e3c4d 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Azure.Template.DataplaneCodeGen.sln +++ b/sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln @@ -5,9 +5,9 @@ VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{8052009B-2126-44A3-88CD-4F3B17894C64}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.DataplaneCodeGen", "src\Azure.Template.DataplaneCodeGen.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generation", "src\Azure.Template.Generation.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.DataplaneCodeGen.Tests", "tests\Azure.Template.DataplaneCodeGen.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generation.Tests", "tests\Azure.Template.Generation.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/CHANGELOG.md b/sdk/template-dpg/Azure.Template.Generation/CHANGELOG.md similarity index 100% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/CHANGELOG.md rename to sdk/template-dpg/Azure.Template.Generation/CHANGELOG.md diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Directory.Build.props b/sdk/template-dpg/Azure.Template.Generation/Directory.Build.props similarity index 100% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/Directory.Build.props rename to sdk/template-dpg/Azure.Template.Generation/Directory.Build.props diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md b/sdk/template-dpg/Azure.Template.Generation/README.md similarity index 94% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md rename to sdk/template-dpg/Azure.Template.Generation/README.md index a9ff6de455385..c73e768d5f1a5 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md +++ b/sdk/template-dpg/Azure.Template.Generation/README.md @@ -1,6 +1,6 @@ # README.md template -Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.DataplaneCodeGen/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/README.md) for an example following this template. +Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.Generation/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-dpg/Azure.Template.Generation/README.md) for an example following this template. **Title**: The H1 of your README should be in the format: `# [Product Name] client library for [Language]` @@ -16,7 +16,7 @@ Use the guidelines in each section of this template to ensure consistency and re * Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. * Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary: - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-dpg/Azure.Template.Generation/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) > TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs b/sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs similarity index 80% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs rename to sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs index fe4be14931927..fcb08c8fefab6 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/api/Azure.Template.DataplaneCodeGen.netstandard2.0.cs +++ b/sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs @@ -1,9 +1,9 @@ -namespace Azure.Template.DataplaneCodeGen +namespace Azure.Template.Generation { public partial class TemplateServiceClient { protected TemplateServiceClient() { } - public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions options = null) { } + public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.Generation.TemplateServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -16,7 +16,7 @@ public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri e } public partial class TemplateServiceClientOptions : Azure.Core.ClientOptions { - public TemplateServiceClientOptions(Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.DataplaneCodeGen.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } + public TemplateServiceClientOptions(Azure.Template.Generation.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.Generation.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } public enum ServiceVersion { V1_0_0 = 1, diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj b/sdk/template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj similarity index 79% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj rename to sdk/template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj index 458f146b55f61..06ddd131b4d7a 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Azure.Template.DataplaneCodeGen.csproj +++ b/sdk/template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj @@ -1,7 +1,7 @@ - This is a Dataplane Code Gen template project to demonstrate how to create a package that uses code generation as well as use for testing our build and release pipelines - Azure SDK Dataplane Code Gen Template + This is a template project to demonstrating how to create a package that uses Azure SDK code generation to create a library for a data plane Azure service. It includes basic templates for setting up build and release pipelines, live and recorded tests, as well as Samples, README, and Changelog files. + Azure SDK Code Generation Template for Azure Data Plane 1.0.0-beta.1 Azure Template $(RequiredTargetFrameworks) diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs b/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs similarity index 99% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs rename to sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs index 4b9911b531127..1912e4935774e 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClient.cs +++ b/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs @@ -14,12 +14,12 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.Template.DataplaneCodeGen +namespace Azure.Template.Generation { /// The TemplateService service client. public partial class TemplateServiceClient { - private static readonly string[] AuthorizationScopes = new string[] { "https://dev.dataplaneCodeGenTemplate.net/.default" }; + private static readonly string[] AuthorizationScopes = new string[] { "https://dev.azuresdkgenerated.net/.default" }; private readonly TokenCredential _tokenCredential; private readonly HttpPipeline _pipeline; private readonly ClientDiagnostics _clientDiagnostics; diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs b/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs similarity index 96% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs rename to sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs index 77c9617d28b26..dbc01fac9496a 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/Generated/TemplateServiceClientOptions.cs +++ b/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs @@ -8,7 +8,7 @@ using System; using Azure.Core; -namespace Azure.Template.DataplaneCodeGen +namespace Azure.Template.Generation { /// Client options for TemplateServiceClient. public partial class TemplateServiceClientOptions : ClientOptions diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/GlobalSuppressions.cs b/sdk/template-dpg/Azure.Template.Generation/src/GlobalSuppressions.cs similarity index 100% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/GlobalSuppressions.cs rename to sdk/template-dpg/Azure.Template.Generation/src/GlobalSuppressions.cs diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md b/sdk/template-dpg/Azure.Template.Generation/src/autorest.md similarity index 59% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md rename to sdk/template-dpg/Azure.Template.Generation/src/autorest.md index 2a6a38cb9f3ed..9326b58170479 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/autorest.md +++ b/sdk/template-dpg/Azure.Template.Generation/src/autorest.md @@ -1,4 +1,4 @@ -# Azure.Template.DataplaneCodeGen Code Generation +# Azure SDK Code Generation for Data Plane Run `dotnet build /t:GenerateCode` to generate code. @@ -8,9 +8,9 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml input-file: - $(this-folder)/swagger/swagger.json -namespace: Azure.Template.DataplaneCodeGen +namespace: Azure.Template.Generated public-clients: true low-level-client: true security: AADToken -security-scopes: https://dev.dataplaneCodeGenTemplate.net/.default +security-scopes: https://dev.azuresdkgenerated.net/.default ``` diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs b/sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs similarity index 60% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs rename to sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs index 56ff2aa44209d..bc83bf885681c 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/properties/AssemblyInfo.cs +++ b/sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs @@ -5,7 +5,7 @@ // Replace with test project/test project public key and uncomment to make internal members visible to // your test project. If not needed, this can be deleted. -// [assembly: InternalsVisibleTo("Azure.Template.DataplaneCodeGen.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] +// [assembly: InternalsVisibleTo("Azure.Template.Generation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] // Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. // See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/swagger/swagger.json b/sdk/template-dpg/Azure.Template.Generation/src/swagger/swagger.json similarity index 100% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/src/swagger/swagger.json rename to sdk/template-dpg/Azure.Template.Generation/src/swagger/swagger.json diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj b/sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj similarity index 93% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj rename to sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj index a5f9baa963270..59d3c8e5bc4d2 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Azure.Template.DataplaneCodeGen.Tests.csproj +++ b/sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs b/sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs similarity index 98% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs rename to sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs index 0320b50103f88..19b416bbb0e32 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/Samples/TemplateServiceSamples.HelloWorld.cs +++ b/sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs @@ -9,7 +9,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.DataplaneCodeGen.Tests.Samples +namespace Azure.Template.Generation.Tests.Samples { public class TemplateServiceSamples : SamplesBase { diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs b/sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs similarity index 92% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs rename to sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs index 07ef223c9aac0..c2ac2a564b7f9 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/SerializationHelpers.cs +++ b/sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs @@ -4,7 +4,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Template.DataplaneCodeGen.Tests +namespace Azure.Template.Generation.Tests { internal class SerializationHelpers { diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs similarity index 95% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs rename to sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs index 4252e9cc81c7f..9fe7d29e7c9cd 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceLiveTests.cs +++ b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs @@ -6,7 +6,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.DataplaneCodeGen.Tests +namespace Azure.Template.Generation.Tests { public class TemplateServiceLiveTests: RecordedTestBase { diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs similarity index 85% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs rename to sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs index a2714d82e6b60..f8a0edfd87589 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTestEnvironment.cs +++ b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs @@ -3,7 +3,7 @@ using Azure.Core.TestFramework; -namespace Azure.Template.DataplaneCodeGen.Tests +namespace Azure.Template.Generation.Tests { public class TemplateServiceTestEnvironment : TestEnvironment { diff --git a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs similarity index 98% rename from sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs rename to sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs index eb112fefbdc20..2a206db21e5ea 100644 --- a/sdk/template-dataplanecodegen/Azure.Template.DataplaneCodeGen/tests/TemplateServiceTests.cs +++ b/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs @@ -8,7 +8,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.DataplaneCodeGen.Tests +namespace Azure.Template.Generation.Tests { public class TemplateServiceTests { diff --git a/sdk/template-dataplanecodegen/Directory.Build.props b/sdk/template-dpg/Directory.Build.props similarity index 100% rename from sdk/template-dataplanecodegen/Directory.Build.props rename to sdk/template-dpg/Directory.Build.props diff --git a/sdk/template-dataplanecodegen/ci.yml b/sdk/template-dpg/ci.yml similarity index 67% rename from sdk/template-dataplanecodegen/ci.yml rename to sdk/template-dpg/ci.yml index 27396fdf8e32b..b1625cc5eb7a9 100644 --- a/sdk/template-dataplanecodegen/ci.yml +++ b/sdk/template-dpg/ci.yml @@ -7,7 +7,7 @@ trigger: - release/* paths: include: - - sdk/template-dataplanecodegen/ + - sdk/template-dpg/ pr: branches: @@ -18,13 +18,13 @@ pr: - release/* paths: include: - - sdk/template-dataplanecodegen/ + - sdk/template-dpg/ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: - ServiceDirectory: template-dataplanecodegen + ServiceDirectory: template-dpg ArtifactName: packages Artifacts: - - name: Azure.Template.DataplaneCodeGen - safeName: AzureTemplateDataplaneCodeGen + - name: Azure.Template.Generation + safeName: AzureTemplateGeneration diff --git a/sdk/template-dataplanecodegen/test-resources.json b/sdk/template-dpg/test-resources.json similarity index 100% rename from sdk/template-dataplanecodegen/test-resources.json rename to sdk/template-dpg/test-resources.json diff --git a/sdk/template-dataplanecodegen/tests.yml b/sdk/template-dpg/tests.yml similarity index 74% rename from sdk/template-dataplanecodegen/tests.yml rename to sdk/template-dpg/tests.yml index dba8eb96526a6..429a9e127c8b1 100644 --- a/sdk/template-dataplanecodegen/tests.yml +++ b/sdk/template-dpg/tests.yml @@ -3,5 +3,5 @@ trigger: none extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: - ServiceDirectory: template-dataplanecodegen + ServiceDirectory: template-dpg SupportedClouds: 'Public' From 7b39cec432c14a45881e4008a5454c5c59f6810c Mon Sep 17 00:00:00 2001 From: Shivangi Reja Date: Thu, 18 Nov 2021 12:02:18 -0800 Subject: [PATCH 3/3] Rename Generation -> Generated --- .../Azure.Template.Generated.sln} | 4 ++-- .../CHANGELOG.md | 0 .../Directory.Build.props | 0 .../README.md | 4 ++-- .../api/Azure.Template.Generated.netstandard2.0.cs} | 6 +++--- .../src/Azure.Template.Generated.csproj} | 0 .../src/Generated/TemplateServiceClient.cs | 2 +- .../src/Generated/TemplateServiceClientOptions.cs | 2 +- .../src/GlobalSuppressions.cs | 0 .../src/autorest.md | 0 .../src/properties/AssemblyInfo.cs | 2 +- .../src/swagger/swagger.json | 0 .../tests/Azure.Template.Generated.Tests.csproj} | 2 +- .../tests/Samples/TemplateServiceSamples.HelloWorld.cs | 2 +- .../tests/SerializationHelpers.cs | 2 +- .../tests/TemplateServiceLiveTests.cs | 2 +- .../tests/TemplateServiceTestEnvironment.cs | 2 +- .../tests/TemplateServiceTests.cs | 2 +- sdk/template-dpg/ci.yml | 4 ++-- 19 files changed, 18 insertions(+), 18 deletions(-) rename sdk/template-dpg/{Azure.Template.Generation/Azure.Template.Generation.sln => Azure.Template.Generated/Azure.Template.Generated.sln} (90%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/CHANGELOG.md (100%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/Directory.Build.props (100%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/README.md (95%) rename sdk/template-dpg/{Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs => Azure.Template.Generated/api/Azure.Template.Generated.netstandard2.0.cs} (84%) rename sdk/template-dpg/{Azure.Template.Generation/src/Azure.Template.Generation.csproj => Azure.Template.Generated/src/Azure.Template.Generated.csproj} (100%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/Generated/TemplateServiceClient.cs (99%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/Generated/TemplateServiceClientOptions.cs (96%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/GlobalSuppressions.cs (100%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/autorest.md (100%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/properties/AssemblyInfo.cs (60%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/src/swagger/swagger.json (100%) rename sdk/template-dpg/{Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj => Azure.Template.Generated/tests/Azure.Template.Generated.Tests.csproj} (93%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/tests/Samples/TemplateServiceSamples.HelloWorld.cs (98%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/tests/SerializationHelpers.cs (93%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/tests/TemplateServiceLiveTests.cs (96%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/tests/TemplateServiceTestEnvironment.cs (87%) rename sdk/template-dpg/{Azure.Template.Generation => Azure.Template.Generated}/tests/TemplateServiceTests.cs (98%) diff --git a/sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln b/sdk/template-dpg/Azure.Template.Generated/Azure.Template.Generated.sln similarity index 90% rename from sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln rename to sdk/template-dpg/Azure.Template.Generated/Azure.Template.Generated.sln index ef25fc75e3c4d..b050b2162b26c 100644 --- a/sdk/template-dpg/Azure.Template.Generation/Azure.Template.Generation.sln +++ b/sdk/template-dpg/Azure.Template.Generated/Azure.Template.Generated.sln @@ -5,9 +5,9 @@ VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{8052009B-2126-44A3-88CD-4F3B17894C64}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generation", "src\Azure.Template.Generation.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generated", "src\Azure.Template.Generated.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generation.Tests", "tests\Azure.Template.Generation.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Template.Generated.Tests", "tests\Azure.Template.Generated.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/sdk/template-dpg/Azure.Template.Generation/CHANGELOG.md b/sdk/template-dpg/Azure.Template.Generated/CHANGELOG.md similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/CHANGELOG.md rename to sdk/template-dpg/Azure.Template.Generated/CHANGELOG.md diff --git a/sdk/template-dpg/Azure.Template.Generation/Directory.Build.props b/sdk/template-dpg/Azure.Template.Generated/Directory.Build.props similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/Directory.Build.props rename to sdk/template-dpg/Azure.Template.Generated/Directory.Build.props diff --git a/sdk/template-dpg/Azure.Template.Generation/README.md b/sdk/template-dpg/Azure.Template.Generated/README.md similarity index 95% rename from sdk/template-dpg/Azure.Template.Generation/README.md rename to sdk/template-dpg/Azure.Template.Generated/README.md index c73e768d5f1a5..a9f5f07ff4869 100644 --- a/sdk/template-dpg/Azure.Template.Generation/README.md +++ b/sdk/template-dpg/Azure.Template.Generated/README.md @@ -1,6 +1,6 @@ # README.md template -Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.Generation/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-dpg/Azure.Template.Generation/README.md) for an example following this template. +Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet) and as a Quickstart on docs.microsoft.com. See [Azure.Template.Generated/README.md](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/template-dpg/Azure.Template.Generated/README.md) for an example following this template. **Title**: The H1 of your README should be in the format: `# [Product Name] client library for [Language]` @@ -16,7 +16,7 @@ Use the guidelines in each section of this template to ensure consistency and re * Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. * Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary: - [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-dpg/Azure.Template.Generation/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) + [Source code](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/template-dpg/Azure.Template.Generated/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.AnomalyDetector) | [API reference documentation](https://azure.github.io/azure-sdk-for-net/anomalydetector.html) | [Product documentation](https://docs.microsoft.com/azure/cognitive-services/anomaly-detector/) > TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. diff --git a/sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs b/sdk/template-dpg/Azure.Template.Generated/api/Azure.Template.Generated.netstandard2.0.cs similarity index 84% rename from sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs rename to sdk/template-dpg/Azure.Template.Generated/api/Azure.Template.Generated.netstandard2.0.cs index fcb08c8fefab6..473be4ac4c77b 100644 --- a/sdk/template-dpg/Azure.Template.Generation/api/Azure.Template.Generation.netstandard2.0.cs +++ b/sdk/template-dpg/Azure.Template.Generated/api/Azure.Template.Generated.netstandard2.0.cs @@ -1,9 +1,9 @@ -namespace Azure.Template.Generation +namespace Azure.Template.Generated { public partial class TemplateServiceClient { protected TemplateServiceClient() { } - public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.Generation.TemplateServiceClientOptions options = null) { } + public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri endpoint = null, Azure.Template.Generated.TemplateServiceClientOptions options = null) { } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Create(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } public virtual System.Threading.Tasks.Task CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } @@ -16,7 +16,7 @@ public TemplateServiceClient(Azure.Core.TokenCredential credential, System.Uri e } public partial class TemplateServiceClientOptions : Azure.Core.ClientOptions { - public TemplateServiceClientOptions(Azure.Template.Generation.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.Generation.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } + public TemplateServiceClientOptions(Azure.Template.Generated.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.Generated.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { } public enum ServiceVersion { V1_0_0 = 1, diff --git a/sdk/template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj b/sdk/template-dpg/Azure.Template.Generated/src/Azure.Template.Generated.csproj similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/src/Azure.Template.Generation.csproj rename to sdk/template-dpg/Azure.Template.Generated/src/Azure.Template.Generated.csproj diff --git a/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs b/sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClient.cs similarity index 99% rename from sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs rename to sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClient.cs index 1912e4935774e..b4f3bc730892f 100644 --- a/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClient.cs +++ b/sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClient.cs @@ -14,7 +14,7 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.Template.Generation +namespace Azure.Template.Generated { /// The TemplateService service client. public partial class TemplateServiceClient diff --git a/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs b/sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClientOptions.cs similarity index 96% rename from sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs rename to sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClientOptions.cs index dbc01fac9496a..01d260c0881d2 100644 --- a/sdk/template-dpg/Azure.Template.Generation/src/Generated/TemplateServiceClientOptions.cs +++ b/sdk/template-dpg/Azure.Template.Generated/src/Generated/TemplateServiceClientOptions.cs @@ -8,7 +8,7 @@ using System; using Azure.Core; -namespace Azure.Template.Generation +namespace Azure.Template.Generated { /// Client options for TemplateServiceClient. public partial class TemplateServiceClientOptions : ClientOptions diff --git a/sdk/template-dpg/Azure.Template.Generation/src/GlobalSuppressions.cs b/sdk/template-dpg/Azure.Template.Generated/src/GlobalSuppressions.cs similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/src/GlobalSuppressions.cs rename to sdk/template-dpg/Azure.Template.Generated/src/GlobalSuppressions.cs diff --git a/sdk/template-dpg/Azure.Template.Generation/src/autorest.md b/sdk/template-dpg/Azure.Template.Generated/src/autorest.md similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/src/autorest.md rename to sdk/template-dpg/Azure.Template.Generated/src/autorest.md diff --git a/sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs b/sdk/template-dpg/Azure.Template.Generated/src/properties/AssemblyInfo.cs similarity index 60% rename from sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs rename to sdk/template-dpg/Azure.Template.Generated/src/properties/AssemblyInfo.cs index bc83bf885681c..7b9a4d4d8780e 100644 --- a/sdk/template-dpg/Azure.Template.Generation/src/properties/AssemblyInfo.cs +++ b/sdk/template-dpg/Azure.Template.Generated/src/properties/AssemblyInfo.cs @@ -5,7 +5,7 @@ // Replace with test project/test project public key and uncomment to make internal members visible to // your test project. If not needed, this can be deleted. -// [assembly: InternalsVisibleTo("Azure.Template.Generation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] +// [assembly: InternalsVisibleTo("Azure.Template.Generated.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] // Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. // See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers diff --git a/sdk/template-dpg/Azure.Template.Generation/src/swagger/swagger.json b/sdk/template-dpg/Azure.Template.Generated/src/swagger/swagger.json similarity index 100% rename from sdk/template-dpg/Azure.Template.Generation/src/swagger/swagger.json rename to sdk/template-dpg/Azure.Template.Generated/src/swagger/swagger.json diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj b/sdk/template-dpg/Azure.Template.Generated/tests/Azure.Template.Generated.Tests.csproj similarity index 93% rename from sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj rename to sdk/template-dpg/Azure.Template.Generated/tests/Azure.Template.Generated.Tests.csproj index 59d3c8e5bc4d2..3bea2d30528bb 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/Azure.Template.Generation.Tests.csproj +++ b/sdk/template-dpg/Azure.Template.Generated/tests/Azure.Template.Generated.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs b/sdk/template-dpg/Azure.Template.Generated/tests/Samples/TemplateServiceSamples.HelloWorld.cs similarity index 98% rename from sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs rename to sdk/template-dpg/Azure.Template.Generated/tests/Samples/TemplateServiceSamples.HelloWorld.cs index 19b416bbb0e32..b3a1a0e238fd1 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/Samples/TemplateServiceSamples.HelloWorld.cs +++ b/sdk/template-dpg/Azure.Template.Generated/tests/Samples/TemplateServiceSamples.HelloWorld.cs @@ -9,7 +9,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.Generation.Tests.Samples +namespace Azure.Template.Generated.Tests.Samples { public class TemplateServiceSamples : SamplesBase { diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs b/sdk/template-dpg/Azure.Template.Generated/tests/SerializationHelpers.cs similarity index 93% rename from sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs rename to sdk/template-dpg/Azure.Template.Generated/tests/SerializationHelpers.cs index c2ac2a564b7f9..c2854cf886d2b 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/SerializationHelpers.cs +++ b/sdk/template-dpg/Azure.Template.Generated/tests/SerializationHelpers.cs @@ -4,7 +4,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Template.Generation.Tests +namespace Azure.Template.Generated.Tests { internal class SerializationHelpers { diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceLiveTests.cs similarity index 96% rename from sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs rename to sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceLiveTests.cs index 9fe7d29e7c9cd..911309fcf0b91 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceLiveTests.cs +++ b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceLiveTests.cs @@ -6,7 +6,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.Generation.Tests +namespace Azure.Template.Generated.Tests { public class TemplateServiceLiveTests: RecordedTestBase { diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTestEnvironment.cs similarity index 87% rename from sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs rename to sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTestEnvironment.cs index f8a0edfd87589..12da7bad04e1b 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTestEnvironment.cs +++ b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTestEnvironment.cs @@ -3,7 +3,7 @@ using Azure.Core.TestFramework; -namespace Azure.Template.Generation.Tests +namespace Azure.Template.Generated.Tests { public class TemplateServiceTestEnvironment : TestEnvironment { diff --git a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTests.cs similarity index 98% rename from sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs rename to sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTests.cs index 2a206db21e5ea..f08c8741acab6 100644 --- a/sdk/template-dpg/Azure.Template.Generation/tests/TemplateServiceTests.cs +++ b/sdk/template-dpg/Azure.Template.Generated/tests/TemplateServiceTests.cs @@ -8,7 +8,7 @@ using Azure.Core.TestFramework; using NUnit.Framework; -namespace Azure.Template.Generation.Tests +namespace Azure.Template.Generated.Tests { public class TemplateServiceTests { diff --git a/sdk/template-dpg/ci.yml b/sdk/template-dpg/ci.yml index b1625cc5eb7a9..94a45b8cc044c 100644 --- a/sdk/template-dpg/ci.yml +++ b/sdk/template-dpg/ci.yml @@ -26,5 +26,5 @@ extends: ServiceDirectory: template-dpg ArtifactName: packages Artifacts: - - name: Azure.Template.Generation - safeName: AzureTemplateGeneration + - name: Azure.Template.Generated + safeName: AzureTemplateGenerated