Skip to content

Commit c0c3b86

Browse files
author
SDKAuto
committed
CodeGen from PR 24506 in Azure/azure-rest-api-specs
Merge e741d742e6f1e23440256726787aff49a125a7f4 into eae8ca2f90c2deb68688f5b1bbba9a5efcc0e42e
1 parent 2c48aa4 commit c0c3b86

13 files changed

+340
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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("{508FCEF0-4050-4B13-B34E-EBBDAB49D42A}") = "Azure.ResourceManager.Sql", "src\Azure.ResourceManager.Sql.csproj", "{C45A1120-C707-4030-9741-2A35C6728E60}"
7+
EndProject
8+
Project("{508FCEF0-4050-4B13-B34E-EBBDAB49D42A}") = "Azure.ResourceManager.Sql.Tests", "tests\Azure.ResourceManager.Sql.Tests.csproj", "{FF93DE86-1665-4922-A69B-7CB29C2E8E46}"
9+
EndProject
10+
Project("{508FCEF0-4050-4B13-B34E-EBBDAB49D42A}") = "Azure.ResourceManager.Sql.Samples", "samples\Azure.ResourceManager.Sql.Samples.csproj", "{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionProperties) = preSolution
14+
HideSolutionNode = FALSE
15+
EndGlobalSection
16+
GlobalSection(ExtensibilityGlobals) = postSolution
17+
SolutionGuid = {B005B4FD-17DA-48D8-8AAA-101B150DF5B9}
18+
EndGlobalSection
19+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
20+
Debug|Any CPU = Debug|Any CPU
21+
Debug|x64 = Debug|x64
22+
Debug|x86 = Debug|x86
23+
Release|Any CPU = Release|Any CPU
24+
Release|x64 = Release|x64
25+
Release|x86 = Release|x86
26+
EndGlobalSection
27+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
28+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|x64.ActiveCfg = Debug|Any CPU
31+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|x64.Build.0 = Debug|Any CPU
32+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|x86.ActiveCfg = Debug|Any CPU
33+
{C45A1120-C707-4030-9741-2A35C6728E60}.Debug|x86.Build.0 = Debug|Any CPU
34+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|Any CPU.ActiveCfg = Release|Any CPU
35+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|Any CPU.Build.0 = Release|Any CPU
36+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|x64.ActiveCfg = Release|Any CPU
37+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|x64.Build.0 = Release|Any CPU
38+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|x86.ActiveCfg = Release|Any CPU
39+
{C45A1120-C707-4030-9741-2A35C6728E60}.Release|x86.Build.0 = Release|Any CPU
40+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
41+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|Any CPU.Build.0 = Debug|Any CPU
42+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|x64.ActiveCfg = Debug|Any CPU
43+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|x64.Build.0 = Debug|Any CPU
44+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|x86.ActiveCfg = Debug|Any CPU
45+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Debug|x86.Build.0 = Debug|Any CPU
46+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|Any CPU.ActiveCfg = Release|Any CPU
47+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|Any CPU.Build.0 = Release|Any CPU
48+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|x64.ActiveCfg = Release|Any CPU
49+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|x64.Build.0 = Release|Any CPU
50+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|x86.ActiveCfg = Release|Any CPU
51+
{FF93DE86-1665-4922-A69B-7CB29C2E8E46}.Release|x86.Build.0 = Release|Any CPU
52+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
53+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|Any CPU.Build.0 = Debug|Any CPU
54+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|x64.ActiveCfg = Debug|Any CPU
55+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|x64.Build.0 = Debug|Any CPU
56+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|x86.ActiveCfg = Debug|Any CPU
57+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Debug|x86.Build.0 = Debug|Any CPU
58+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|Any CPU.Build.0 = Release|Any CPU
60+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|x64.ActiveCfg = Release|Any CPU
61+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|x64.Build.0 = Release|Any CPU
62+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|x86.ActiveCfg = Release|Any CPU
63+
{CCACC9ED-508B-4CFC-BC11-19F1785FE97A}.Release|x86.Build.0 = Release|Any CPU
64+
EndGlobalSection
65+
EndGlobal
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (Unreleased)
4+
5+
### General New Features
6+
7+
This package follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
8+
9+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET.
10+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing.
11+
- HTTP pipeline with custom policies.
12+
- Better error-handling.
13+
- Support uniform telemetry across all languages.
14+
15+
This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues).
16+
17+
> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet).
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: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Microsoft Azure sql management client library for .NET
2+
3+
**[Describe the service briefly first.]**
4+
5+
This library follows the [new Azure SDK guidelines](https://azure.github.io/azure-sdk/general_introduction.html), and provides many core capabilities:
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+
## Getting started
14+
15+
### Install the package
16+
17+
Install the Microsoft Azure sql management library for .NET with [NuGet](https://www.nuget.org/):
18+
19+
```dotnetcli
20+
dotnet add package Azure.ResourceManager.Sql --prerelease
21+
```
22+
23+
### Prerequisites
24+
25+
* You must have an [Microsoft Azure subscription](https://azure.microsoft.com/free/dotnet/).
26+
27+
### Authenticate the Client
28+
29+
To create an authenticated client and start interacting with Microsoft Azure resources, see the [quickstart guide here](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
30+
31+
## Key concepts
32+
33+
Key concepts of the Microsoft Azure SDK for .NET can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html)
34+
35+
## Documentation
36+
37+
Documentation is available to help you learn how to use this package:
38+
39+
- [Quickstart](https://github.com/Azure/azure-sdk-for-net/blob/main/doc/dev/mgmt_quickstart.md).
40+
- [API References](https://docs.microsoft.com/dotnet/api/?view=azure-dotnet).
41+
- [Authentication](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md).
42+
43+
## Examples
44+
45+
Code samples for using the management library for .NET can be found in the following locations
46+
- [.NET Management Library Code Samples](https://aka.ms/azuresdk-net-mgmt-samples)
47+
48+
## Troubleshooting
49+
50+
- File an issue via [GitHub Issues](https://github.com/Azure/azure-sdk-for-net/issues).
51+
- Check [previous questions](https://stackoverflow.com/questions/tagged/azure+.net) or ask new ones on Stack Overflow using Azure and .NET tags.
52+
53+
## Next steps
54+
55+
For more information about Microsoft Azure SDK, see [this website](https://azure.github.io/azure-sdk/).
56+
57+
## Contributing
58+
59+
For details on contributing to this repository, see the [contributing
60+
guide][cg].
61+
62+
This project welcomes contributions and suggestions. Most contributions
63+
require you to agree to a Contributor License Agreement (CLA) declaring
64+
that you have the right to, and actually do, grant us the rights to use
65+
your contribution. For details, visit <https://cla.microsoft.com>.
66+
67+
When you submit a pull request, a CLA-bot will automatically determine
68+
whether you need to provide a CLA and decorate the PR appropriately
69+
(for example, label, comment). Follow the instructions provided by the
70+
bot. You'll only need to do this action once across all repositories
71+
using our CLA.
72+
73+
This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
74+
more information, see the [Code of Conduct FAQ][coc_faq] or contact
75+
<[email protected]> with any other questions or comments.
76+
77+
<!-- LINKS -->
78+
[cg]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/resourcemanager/Azure.ResourceManager/docs/CONTRIBUTING.md
79+
[coc]: https://opensource.microsoft.com/codeofconduct/
80+
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<ItemGroup>
3+
<PackageReference Include="Azure.Identity"/>
4+
<PackageReference Include="NUnit" />
5+
<PackageReference Include="NUnit3TestAdapter" />
6+
</ItemGroup>
7+
<ItemGroup>
8+
<ProjectReference Include="..\src\Azure.ResourceManager.Sql.csproj" />
9+
</ItemGroup>
10+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated code configuration
2+
3+
Run `dotnet build /t:GenerateTests` to generate code.
4+
5+
# Azure.ResourceManager.sql.Tests
6+
7+
> see https://aka.ms/autorest
8+
``` yaml
9+
require: ../src/autorest.md
10+
include-x-ms-examples-original-file: true
11+
testgen:
12+
sample: true
13+
```
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: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Generated code configuration
2+
3+
Run `dotnet build /t:GenerateCode` to generate code.
4+
5+
``` yaml
6+
azure-arm: true
7+
csharp: true
8+
library-name: sql
9+
namespace: Azure.ResourceManager.sql
10+
require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/sql/resource-manager/readme.md
11+
output-folder: $(this-folder)/Generated
12+
clear-output-folder: true
13+
skip-csproj: true
14+
modelerfour:
15+
flatten-payloads: false
16+
17+
18+
19+
format-by-name-rules:
20+
'tenantId': 'uuid'
21+
'ETag': 'etag'
22+
'location': 'azure-location'
23+
'*Uri': 'Uri'
24+
'*Uris': 'Uri'
25+
26+
rename-rules:
27+
CPU: Cpu
28+
CPUs: Cpus
29+
Os: OS
30+
Ip: IP
31+
Ips: IPs|ips
32+
ID: Id
33+
IDs: Ids
34+
VM: Vm
35+
VMs: Vms
36+
Vmos: VmOS
37+
VMScaleSet: VmScaleSet
38+
DNS: Dns
39+
VPN: Vpn
40+
NAT: Nat
41+
WAN: Wan
42+
Ipv4: IPv4|ipv4
43+
Ipv6: IPv6|ipv6
44+
Ipsec: IPsec|ipsec
45+
SSO: Sso
46+
URI: Uri
47+
Etag: ETag|etag
48+
49+
```
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>

0 commit comments

Comments
 (0)