diff --git a/eng/mgmt/mgmtmetadata/notificationhubs_resource-manager.txt b/eng/mgmt/mgmtmetadata/notificationhubs_resource-manager.txt
index 26301c1120b9..9fcae4b2632e 100644
--- a/eng/mgmt/mgmtmetadata/notificationhubs_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/notificationhubs_resource-manager.txt
@@ -1,14 +1,15 @@
-Installing AutoRest version: v2
+Installing AutoRest version: v2
AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
-cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/notificationhubs/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\Code\azure-sdk-for-net\sdk
-2020-07-21 19:11:58 UTC
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/notificationhubs/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\sdk
+Autorest CSharp Version: 2.3.82
+2022-02-02 00:07:21 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
-Branch: master
-Commit: 2916791fddcf1b69ebbc0741aa809350201041be
+Branch: main
+Commit: 938d33ac71d661bfa53946ad4fa72c7fdbf2dfcf
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/INamespacesOperations.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/INamespacesOperations.cs
index c34fd7fa4506..3a4905d975c3 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/INamespacesOperations.cs
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/INamespacesOperations.cs
@@ -334,7 +334,7 @@ public partial interface INamespacesOperations
///
/// Thrown when a required parameter is null
///
- Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Regenerates the Primary/Secondary Keys to the Namespace
/// Authorization Rule
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs
deleted file mode 100644
index 69254307e060..000000000000
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/Models/SharedAccessAuthorizationRuleListResult.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License. See License.txt in the project root for
-// license information.
-//
-// Code generated by Microsoft (R) AutoRest Code Generator.
-// Changes may cause incorrect behavior and will be lost if the code is
-// regenerated.
-//
-
-namespace Microsoft.Azure.Management.NotificationHubs.Models
-{
- using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
-
- ///
- /// The response of the List Namespace operation.
- ///
- public partial class SharedAccessAuthorizationRuleListResult
- {
- ///
- /// Initializes a new instance of the
- /// SharedAccessAuthorizationRuleListResult class.
- ///
- public SharedAccessAuthorizationRuleListResult()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the
- /// SharedAccessAuthorizationRuleListResult class.
- ///
- /// Result of the List AuthorizationRules
- /// operation.
- /// Link to the next set of results. Not empty
- /// if Value contains incomplete list of AuthorizationRules
- public SharedAccessAuthorizationRuleListResult(IList value = default(IList), string nextLink = default(string))
- {
- Value = value;
- NextLink = nextLink;
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- ///
- /// Gets or sets result of the List AuthorizationRules operation.
- ///
- [JsonProperty(PropertyName = "value")]
- public IList Value { get; set; }
-
- ///
- /// Gets or sets link to the next set of results. Not empty if Value
- /// contains incomplete list of AuthorizationRules
- ///
- [JsonProperty(PropertyName = "nextLink")]
- public string NextLink { get; set; }
-
- }
-}
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperations.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperations.cs
index 46c2d2eb6851..9fe91ffde5e2 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperations.cs
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperations.cs
@@ -2120,7 +2120,7 @@ internal NamespacesOperations(NotificationHubsManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2260,7 +2260,7 @@ internal NamespacesOperations(NotificationHubsManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -2273,7 +2273,7 @@ internal NamespacesOperations(NotificationHubsManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperationsExtensions.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperationsExtensions.cs
index b66a161247d5..bdfb9e011452 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperationsExtensions.cs
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/NamespacesOperationsExtensions.cs
@@ -498,7 +498,7 @@ public static IPage ListAuthorizationRule
///
/// The connection string of the namespace for the specified authorizationRule.
///
- public static SharedAccessAuthorizationRuleListResult ListKeys(this INamespacesOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName)
+ public static ResourceListKeys ListKeys(this INamespacesOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName)
{
return operations.ListKeysAsync(resourceGroupName, namespaceName, authorizationRuleName).GetAwaiter().GetResult();
}
@@ -521,7 +521,7 @@ public static SharedAccessAuthorizationRuleListResult ListKeys(this INamespacesO
///
/// The cancellation token.
///
- public static async Task ListKeysAsync(this INamespacesOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ListKeysAsync(this INamespacesOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, namespaceName, authorizationRuleName, null, cancellationToken).ConfigureAwait(false))
{
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/SdkInfo_NotificationHubsManagementClient.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/SdkInfo_NotificationHubsManagementClient.cs
index 596a87426e57..1f22453c1039 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/SdkInfo_NotificationHubsManagementClient.cs
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Generated/SdkInfo_NotificationHubsManagementClient.cs
@@ -28,10 +28,10 @@ public static IEnumerable> ApiInfo_NotificationHub
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "v2";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/notificationhubs/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\Code\\azure-sdk-for-net\\sdk";
+ public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/notificationhubs/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\git\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "2916791fddcf1b69ebbc0741aa809350201041be";
+ public static readonly String GithubBranchName = "main";
+ public static readonly String GithubCommidId = "938d33ac71d661bfa53946ad4fa72c7fdbf2dfcf";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Microsoft.Azure.Management.NotificationHubs.csproj b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Microsoft.Azure.Management.NotificationHubs.csproj
index 9bf88d4e6e69..af9336c42970 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Microsoft.Azure.Management.NotificationHubs.csproj
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Microsoft.Azure.Management.NotificationHubs.csproj
@@ -7,13 +7,12 @@
Microsoft.Azure.Management.NotificationHubs
Provides developers with libraries to create and manager Namespaces of type NotificationHub and NotificationHubs. Manage Authorization Rules at both the resource levels. Note: This client library is for NotificationHubs under Azure Resource Manager.
Microsoft.Azure.Management.NotificationHubs
- 2.3.3-preview
+ 2.3.4-preview
Microsoft Azure NotificationHubs Management;NotificationHubs;NotificationHubs management;
diff --git a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Properties/AssemblyInfo.cs b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Properties/AssemblyInfo.cs
index a23b387c1eaf..d9b0f1425fab 100644
--- a/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Properties/AssemblyInfo.cs
+++ b/sdk/notificationhubs/Microsoft.Azure.Management.NotificationHubs/src/Properties/AssemblyInfo.cs
@@ -7,7 +7,7 @@
[assembly: AssemblyTitle("Microsoft Azure NotificationHubs Management Library")]
[assembly: AssemblyDescription("Provides Microsoft Azure NotificationHubs management functions for managing the Microsoft Azure NotificationHubs service.")]
-[assembly: AssemblyVersion("2.0.0.0")]
+[assembly: AssemblyVersion("2.3.4.0")]
[assembly: AssemblyFileVersion("2.4.0.0")]
[assembly: AssemblyConfiguration("")]