Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[template-LLC] Rename LLC to Dataplane Code Gen #25390

Merged
merged 3 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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.Generation", "src\Azure.Template.Generation.csproj", "{AF06AB51-3B39-4905-B7EA-CD7563DE5770}"
ShivangiReja marked this conversation as resolved.
Show resolved Hide resolved
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.Generation.Tests", "tests\Azure.Template.Generation.Tests.csproj", "{ADB00BD6-8FEE-4176-BE15-4F530F5C8F29}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -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.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]`

Expand All @@ -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-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.

Expand All @@ -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));
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Azure.Template.LLC
namespace Azure.Template.Generation
{
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.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<Azure.Response> CreateAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; }
Expand All @@ -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.Generation.TemplateServiceClientOptions.ServiceVersion version = Azure.Template.Generation.TemplateServiceClientOptions.ServiceVersion.V1_0_0) { }
public enum ServiceVersion
{
V1_0_0 = 1,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>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</Description>
<AssemblyTitle>Azure SDK LLC Template</AssemblyTitle>
<Description>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.</Description>
<AssemblyTitle>Azure SDK Code Generation Template for Azure Data Plane</AssemblyTitle>
<Version>1.0.0-beta.1</Version>
<PackageTags>Azure Template</PackageTags>
<TargetFrameworks>$(RequiredTargetFrameworks)</TargetFrameworks>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Azure.Template.LLC Code Generation
# Azure SDK Code Generation for Data Plane

Run `dotnet build /t:GenerateCode` to generate code.

Expand All @@ -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.Generated
public-clients: true
low-level-client: true
security: AADToken
security-scopes: https://dev.LLCtemplate.net/.default
security-scopes: https://dev.azuresdkgenerated.net/.default
```
Original file line number Diff line number Diff line change
Expand Up @@ -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.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- Reference the Client Library -->
<ItemGroup>
<ProjectReference Include="$(AzureCoreTestFramework)" />
<ProjectReference Include="..\src\Azure.Template.LLC.csproj" />
<ProjectReference Include="..\src\Azure.Template.Generation.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
using Azure.Core.TestFramework;
using NUnit.Framework;

namespace Azure.Template.LLC.Tests.Samples
namespace Azure.Template.Generation.Tests.Samples
{
public class TemplateServiceSamples : SamplesBase<TemplateServiceTestEnvironment>
{
public TemplateServiceClient GetClient()
{
var endpoint = TestEnvironment.Endpoint;

#region Snippet:TemplateLLCAuthenticate
#region Snippet:TemplateServiceAuthenticate
var serviceClient = new TemplateServiceClient(new DefaultAzureCredential(), new Uri(endpoint));
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text.Json;
using Azure.Core;

namespace Azure.Template.LLC.Tests
namespace Azure.Template.Generation.Tests
{
internal class SerializationHelpers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Azure.Core.TestFramework;
using NUnit.Framework;

namespace Azure.Template.LLC.Tests
namespace Azure.Template.Generation.Tests
{
public class TemplateServiceLiveTests: RecordedTestBase<TemplateServiceTestEnvironment>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using Azure.Core.TestFramework;

namespace Azure.Template.LLC.Tests
namespace Azure.Template.Generation.Tests
{
public class TemplateServiceTestEnvironment : TestEnvironment
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Azure.Core.TestFramework;
using NUnit.Framework;

namespace Azure.Template.LLC.Tests
namespace Azure.Template.Generation.Tests
{
public class TemplateServiceTests
{
Expand Down
10 changes: 5 additions & 5 deletions sdk/template-LLC/ci.yml → sdk/template-dpg/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trigger:
- release/*
paths:
include:
- sdk/template-LLC/
- sdk/template-dpg/

pr:
branches:
Expand All @@ -18,13 +18,13 @@ pr:
- release/*
paths:
include:
- sdk/template-LLC/
- sdk/template-dpg/

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: template-LLC
ServiceDirectory: template-dpg
ArtifactName: packages
Artifacts:
- name: Azure.Template.LLC
safeName: AzureTemplateLLC
- name: Azure.Template.Generation
safeName: AzureTemplateGeneration
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ trigger: none
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml
parameters:
ServiceDirectory: template-LLC
ServiceDirectory: template-dpg
SupportedClouds: 'Public'