Skip to content

Commit 1c906b8

Browse files
dvbbm-nashHarveyLink
authored
[Communication] Release Track2 MGMT SDK (Azure#26044)
* update to latest generation * re-gen * fix Build error * Update unit test cases 1. update TestBase.cs 2. delete ListByRGTests and CheckAvailabilityTests 3. modify CommunicationCrudTests and NotificationHubTests * re-gen * Update Azure.ResourceManager.Communication.netstandard2.0.cs * sample * update readme * re-gen * rename * Update Azure.ResourceManager.Communication.netstandard2.0.cs * changlog * update sample * drop duplicated [.cs] suffix * Update README.md * Rename Parameters to Options * Remove [TaggedResource] * Revert "Remove [TaggedResource]" This reverts commit 4ab3584. * suppress orphaned models * suppress orphaned model * fix ci error * Update Azure.ResourceManager.Communication.netstandard2.0.cs Co-authored-by: m-nash <prognash@gmail.com> Co-authored-by: Minghao Chen <30464227+HarveyLink@users.noreply.github.com>
1 parent 48f8fb4 commit 1c906b8

File tree

100 files changed

+52670
-30892
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+52670
-30892
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 16
3+
VisualStudioVersion = 16.0.30114.105
4+
MinimumVisualStudioVersion = 15.0.26124.0
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Communication", "src\Azure.ResourceManager.Communication.csproj", "{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}"
6+
EndProject
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.Communication.Tests", "tests\Azure.ResourceManager.Communication.Tests.csproj", "{738C0769-57F8-439C-8078-54498A030BA0}"
8+
EndProject
9+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}"
10+
EndProject
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{DF15D10D-3646-447E-B00B-49506D142322}"
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|Any CPU = Debug|Any CPU
16+
Debug|x64 = Debug|x64
17+
Debug|x86 = Debug|x86
18+
Release|Any CPU = Release|Any CPU
19+
Release|x64 = Release|x64
20+
Release|x86 = Release|x86
21+
EndGlobalSection
22+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
23+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|x64.ActiveCfg = Debug|Any CPU
26+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|x64.Build.0 = Debug|Any CPU
27+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|x86.ActiveCfg = Debug|Any CPU
28+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Debug|x86.Build.0 = Debug|Any CPU
29+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|x64.ActiveCfg = Release|Any CPU
32+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|x64.Build.0 = Release|Any CPU
33+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|x86.ActiveCfg = Release|Any CPU
34+
{34F1E6F5-F5E7-4F8E-A26B-56EB03E7C15C}.Release|x86.Build.0 = Release|Any CPU
35+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
36+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
37+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|x64.ActiveCfg = Debug|Any CPU
38+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|x64.Build.0 = Debug|Any CPU
39+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|x86.ActiveCfg = Debug|Any CPU
40+
{738C0769-57F8-439C-8078-54498A030BA0}.Debug|x86.Build.0 = Debug|Any CPU
41+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
42+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|x64.ActiveCfg = Release|Any CPU
44+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|x64.Build.0 = Release|Any CPU
45+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|x86.ActiveCfg = Release|Any CPU
46+
{738C0769-57F8-439C-8078-54498A030BA0}.Release|x86.Build.0 = Release|Any CPU
47+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|x64.ActiveCfg = Debug|Any CPU
50+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|x64.Build.0 = Debug|Any CPU
51+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|x86.ActiveCfg = Debug|Any CPU
52+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Debug|x86.Build.0 = Debug|Any CPU
53+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|Any CPU.Build.0 = Release|Any CPU
55+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|x64.ActiveCfg = Release|Any CPU
56+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|x64.Build.0 = Release|Any CPU
57+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|x86.ActiveCfg = Release|Any CPU
58+
{EF7D6C71-0600-4A71-BEC9-297DAF6C7966}.Release|x86.Build.0 = Release|Any CPU
59+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
60+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|Any CPU.Build.0 = Debug|Any CPU
61+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|x64.ActiveCfg = Debug|Any CPU
62+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|x64.Build.0 = Debug|Any CPU
63+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|x86.ActiveCfg = Debug|Any CPU
64+
{DF15D10D-3646-447E-B00B-49506D142322}.Debug|x86.Build.0 = Debug|Any CPU
65+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|Any CPU.ActiveCfg = Release|Any CPU
66+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|Any CPU.Build.0 = Release|Any CPU
67+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|x64.ActiveCfg = Release|Any CPU
68+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|x64.Build.0 = Release|Any CPU
69+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|x86.ActiveCfg = Release|Any CPU
70+
{DF15D10D-3646-447E-B00B-49506D142322}.Release|x86.Build.0 = Release|Any CPU
71+
EndGlobalSection
72+
GlobalSection(SolutionProperties) = preSolution
73+
HideSolutionNode = FALSE
74+
EndGlobalSection
75+
GlobalSection(ExtensibilityGlobals) = postSolution
76+
SolutionGuid = {9C6B6267-1461-414D-9669-E3447591DCBF}
77+
EndGlobalSection
78+
EndGlobal

sdk/communication/Azure.ResourceManager.Communication/CHANGELOG.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,71 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.1.0-beta.1 (2021-12-27)
44

5+
### Features Added
6+
7+
- Added ArmClient extension methods to support [start from the middle scenario](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/resourcemanager/Azure.ResourceManager#managing-existing-resources-by-id).
8+
9+
### Breaking Changes
10+
11+
Guidance to migrate from previous version of Azure Management SDK
12+
13+
### General New Features
14+
15+
- Support MSAL.NET, Azure.Identity is out of box for supporting MSAL.NET
16+
- Support [OpenTelemetry](https://opentelemetry.io/) for distributed tracing
17+
- HTTP pipeline with custom policies
18+
- Better error-handling
19+
- Support uniform telemetry across all languages
20+
21+
> NOTE: For more information about unified authentication, please refer to [Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet)
22+
23+
#### Management Client Changes
24+
25+
Example: Create A Communication Service Instance:
26+
27+
Before upgrade:
28+
```C#
29+
using Azure.Identity;
30+
using Azure.ResourceManager.Communication;
31+
using Azure.ResourceManager.Communication.Models;
32+
using System;
33+
using System.Threading.Tasks;
34+
35+
string subscriptionId = "_SUBSCRIPTION_ID_";
36+
CommunicationManagementClient communicationServiceClient = new CommunicationManagementClient(subscriptionId, new InteractiveBrowserCredential());
37+
var resourceGroupName = "myResourceGroupName";
38+
var resourceName = "myResource";
39+
var resource = new CommunicationServiceResource { Location = "Global", DataLocation = "UnitedStates" };
40+
var operation = await communicationServiceClient.CommunicationService.StartCreateOrUpdateAsync(resourceGroupName, resourceName, resource);
41+
await operation.WaitForCompletionAsync();
42+
```
43+
44+
After upgrade:
45+
```C#
46+
using System;
47+
using System.Threading.Tasks;
48+
using Azure.Identity;
49+
using Azure.ResourceManager.Resources;
50+
using Azure.ResourceManager.Resources.Models;
51+
52+
ArmClient armClient = new ArmClient(new DefaultAzureCredential());
53+
Subscription subscription = await armClient.GetDefaultSubscriptionAsync();
54+
ResourceGroupCollection rgCollection = subscription.GetResourceGroups();
55+
string rgName = "myRgName";
56+
Location location = Location.WestUS2;
57+
ResourceGroupCreateOrUpdateOperation lro = await rgCollection.CreateOrUpdateAsync(rgName, new ResourceGroupData(location));
58+
ResourceGroup resourceGroup = lro.Value;
59+
var collection = resourceGroup.GetCommunicationServices();
60+
string communicationServiceName = "myCommunicationService";
61+
CommunicationServiceData data = new CommunicationServiceData()
62+
{
63+
Location = "global",
64+
DataLocation = "UnitedStates",
65+
};
66+
var communicationServiceLro = await collection.CreateOrUpdateAsync(communicationServiceName, data);
67+
CommunicationService communicationService = communicationServiceLro.Value;
68+
```
569

670
## 1.0.0 (2021-03-29)
771
This is the first stable release of the management library for Azure Communication Services.

0 commit comments

Comments
 (0)