Skip to content

Commit 99a3c1b

Browse files
author
SDKAuto
committed
CodeGen from PR 20827 in Azure/azure-rest-api-specs
Merge 474c39597822612b3e086df2d3809b57c0ab592a into df6a22e
1 parent 417bc88 commit 99a3c1b

File tree

10 files changed

+272
-0
lines changed

10 files changed

+272
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30309.148
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{A9CB562C-1E6F-4AFF-8F50-73EE40CF074B}") = "Azure.ResourceManager.Sql", "src\Azure.ResourceManager.Sql.csproj", "{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}"
7+
EndProject
8+
Project("{A9CB562C-1E6F-4AFF-8F50-73EE40CF074B}") = "Azure.ResourceManager.Sql.Tests", "tests\Azure.ResourceManager.Sql.Tests.csproj", "{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionProperties) = preSolution
12+
HideSolutionNode = FALSE
13+
EndGlobalSection
14+
GlobalSection(ExtensibilityGlobals) = postSolution
15+
SolutionGuid = {0512F57B-62C1-4FFC-A76D-FFB92B635BCD}
16+
EndGlobalSection
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Debug|x64 = Debug|x64
20+
Debug|x86 = Debug|x86
21+
Release|Any CPU = Release|Any CPU
22+
Release|x64 = Release|x64
23+
Release|x86 = Release|x86
24+
EndGlobalSection
25+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
26+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|x64.ActiveCfg = Debug|Any CPU
29+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|x64.Build.0 = Debug|Any CPU
30+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|x86.ActiveCfg = Debug|Any CPU
31+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Debug|x86.Build.0 = Debug|Any CPU
32+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|Any CPU.Build.0 = Release|Any CPU
34+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|x64.ActiveCfg = Release|Any CPU
35+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|x64.Build.0 = Release|Any CPU
36+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|x86.ActiveCfg = Release|Any CPU
37+
{4B3B0BD0-C0E2-43B1-8D6E-0A67608D9079}.Release|x86.Build.0 = Release|Any CPU
38+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
39+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
40+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|x64.ActiveCfg = Debug|Any CPU
41+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|x64.Build.0 = Debug|Any CPU
42+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|x86.ActiveCfg = Debug|Any CPU
43+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Debug|x86.Build.0 = Debug|Any CPU
44+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|x64.ActiveCfg = Release|Any CPU
47+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|x64.Build.0 = Release|Any CPU
48+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|x86.ActiveCfg = Release|Any CPU
49+
{212B7C7E-843A-4627-AFD2-E4ED0CEFCCB7}.Release|x86.Build.0 = Release|Any CPU
50+
EndGlobalSection
51+
EndGlobal
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (Unreleased)
4+
5+
### General New Features
6+
7+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET
8+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing
9+
- HTTP pipeline with custom policies
10+
- Better error-handling
11+
- Support uniform telemetry across all languages
12+
13+
This package follows the [Azure SDK Design Guidelines for .NET](https://azure.github.io/azure-sdk/dotnet_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more.
14+
15+
This is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<!--
3+
Add any shared properties you want for the projects under this package directory that need to be set before the auto imported Directory.Build.props
4+
-->
5+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., Directory.Build.props))\Directory.Build.props" />
6+
</Project>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Azure sql Management client library for .NET
2+
3+
This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html) which provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more.
4+
5+
## Getting started
6+
7+
### Install the package
8+
9+
Install the Azure sql management library for .NET with [NuGet](https://www.nuget.org/):
10+
11+
```dotnetcli
12+
dotnet add package Azure.ResourceManager.Sql --prerelease
13+
```
14+
15+
### Prerequisites
16+
17+
* You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/)
18+
19+
### Authenticate the Client
20+
21+
To create an authenticated client and start interacting with Azure resources, please see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md)
22+
23+
## Key concepts
24+
25+
Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
26+
27+
## Documentation
28+
29+
Documentation is available to help you learn how to use this package
30+
31+
- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md)
32+
- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet)
33+
- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md)
34+
35+
## Examples
36+
37+
Code samples for using the management library for .NET can be found in the following locations
38+
- [.NET Management Library Code Samples](https://docs.microsoft.com/samples/browse/?branch=master&languages=csharp&term=managing%20using%20Azure%20.NET%20SDK)
39+
40+
## Troubleshooting
41+
42+
- File an issue via [Github
43+
Issues](https://github.com/Azure/azure-sdk-for-net/issues)
44+
- Check [previous
45+
questions](https://stackoverflow.com/questions/tagged/azure+.net)
46+
or ask new ones on Stack Overflow using azure and .net tags.
47+
48+
49+
## Next steps
50+
51+
For more information on Azure SDK, please refer to [this website](https://azure.github.io/azure-sdk/)
52+
53+
## Contributing
54+
55+
For details on contributing to this repository, see the [contributing
56+
guide][cg].
57+
58+
This project welcomes contributions and suggestions. Most contributions
59+
require you to agree to a Contributor License Agreement (CLA) declaring
60+
that you have the right to, and actually do, grant us the rights to use
61+
your contribution. For details, visit <https://cla.microsoft.com>.
62+
63+
When you submit a pull request, a CLA-bot will automatically determine
64+
whether you need to provide a CLA and decorate the PR appropriately
65+
(e.g., label, comment). Simply follow the instructions provided by the
66+
bot. You will only need to do this once across all repositories using
67+
our CLA.
68+
69+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
70+
more information see the [Code of Conduct FAQ][coc_faq] or contact
71+
<opencode@microsoft.com> with any additional questions or comments.
72+
73+
<!-- LINKS -->
74+
[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
75+
[coc]: https://opensource.microsoft.com/codeofconduct/
76+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<Version>1.0.0-beta.1</Version>
4+
<PackageId>Azure.ResourceManager.Sql</PackageId>
5+
<Description>Azure Resource Manager client SDK for Azure resource provider sql</Description>
6+
<PackageTags>azure;management;arm;resource manager;sql</PackageTags>
7+
</PropertyGroup>
8+
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using System.Runtime.CompilerServices;
5+
6+
[assembly: Azure.Core.AzureResourceProviderNamespace("sql")]
7+
8+
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2, PublicKey=0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7")]
9+
[assembly: InternalsVisibleTo("Azure.ResourceManager.Sql.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Generated code configuration
2+
3+
Run `dotnet build /t:GenerateCode` to generate code.
4+
5+
``` yaml
6+
7+
azure-arm: true
8+
csharp: true
9+
library-name: sql
10+
namespace: Azure.ResourceManager.sql
11+
require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/sql/resource-manager/readme.md
12+
output-folder: $(this-folder)/Generated
13+
clear-output-folder: true
14+
skip-csproj: true
15+
modelerfour:
16+
flatten-payloads: false
17+
18+
19+
20+
format-by-name-rules:
21+
'tenantId': 'uuid'
22+
'ETag': 'etag'
23+
'location': 'azure-location'
24+
'*Uri': 'Uri'
25+
'*Uris': 'Uri'
26+
27+
rename-rules:
28+
CPU: Cpu
29+
CPUs: Cpus
30+
Os: OS
31+
Ip: IP
32+
Ips: IPs|ips
33+
ID: Id
34+
IDs: Ids
35+
VM: Vm
36+
VMs: Vms
37+
Vmos: VmOS
38+
VMScaleSet: VmScaleSet
39+
DNS: Dns
40+
VPN: Vpn
41+
NAT: Nat
42+
WAN: Wan
43+
Ipv4: IPv4|ipv4
44+
Ipv6: IPv6|ipv6
45+
Ipsec: IPsec|ipsec
46+
SSO: Sso
47+
URI: Uri
48+
Etag: ETag|etag
49+
50+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<ItemGroup>
3+
<ProjectReference Include="..\src\Azure.ResourceManager.Sql.csproj" />
4+
</ItemGroup>
5+
</Project>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using Azure.Core;
5+
using Azure.Core.TestFramework;
6+
using Azure.ResourceManager.Resources;
7+
using Azure.ResourceManager.TestFramework;
8+
using NUnit.Framework;
9+
using System.Threading.Tasks;
10+
11+
namespace Azure.ResourceManager.Sql.Tests
12+
{
13+
public class sqlManagementTestBase : ManagementRecordedTestBase<sqlManagementTestEnvironment>
14+
{
15+
protected ArmClient Client { get; private set; }
16+
17+
protected sqlManagementTestBase(bool isAsync, RecordedTestMode mode)
18+
: base(isAsync, mode)
19+
{
20+
}
21+
22+
protected sqlManagementTestBase(bool isAsync)
23+
: base(isAsync)
24+
{
25+
}
26+
27+
[SetUp]
28+
public void CreateCommonClient()
29+
{
30+
Client = GetArmClient();
31+
}
32+
33+
protected async Task<ResourceGroupResource> CreateResourceGroup(SubscriptionResource subscription, string rgNamePrefix, AzureLocation location)
34+
{
35+
string rgName = Recording.GenerateAssetName(rgNamePrefix);
36+
ResourceGroupData input = new ResourceGroupData(location);
37+
var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input);
38+
return lro.Value;
39+
}
40+
}
41+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
using Azure.Core.TestFramework;
5+
6+
namespace Azure.ResourceManager.Sql.Tests
7+
{
8+
public class sqlManagementTestEnvironment : TestEnvironment
9+
{
10+
}
11+
}

0 commit comments

Comments
 (0)