Skip to content

Commit 7053205

Browse files
authored
[Az.SignalR] Migrate Autorest Generation v3 to v4 (#29564)
1 parent 269dd3a commit 7053205

129 files changed

Lines changed: 4614 additions & 2067 deletions

File tree

Some content is hidden

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

src/SignalR/SignalR.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - WebPubSub")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.3.3")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.3.3")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/SignalR/SignalR.Autorest/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,15 @@ commit: 492cf91751be945ceae53cfdd53b1ff2fb878703
5353
# uncomment following line to support viaIdentity for these post APIs
5454
identity-correction-for-post: true
5555

56-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
57-
use-extension:
58-
"@autorest/powershell": "3.x"
59-
6056
directive:
6157
# Following is two common directive which are normally required in all the RPs
6258
# 1. Remove the unexpanded parameter set
6359
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
6460
- where:
65-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
61+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
62+
remove: true
63+
- where:
64+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
6665
remove: true
6766
# Remove the set-* cmdlet
6867
- where:
@@ -328,6 +327,10 @@ directive:
328327
set:
329328
parameter-name: Name
330329
alias: CertificateName
330+
- where:
331+
subject: WebPubSubCustomCertificate
332+
verb: Update
333+
remove: true
331334
# Disable Inline on the Baseclass(Model).
332335
- no-inline:
333336
- EventListenerEndpoint

src/SignalR/SignalR.Autorest/custom/csharp/GetAzOperation_List.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomCertificate_Get.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomCertificate_GetViaIdentity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomCertificate_List.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomDomain_Get.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomDomain_GetViaIdentity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubCustomDomain_List.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

src/SignalR/SignalR.Autorest/custom/csharp/GetAzWebPubSubHub_Get.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System.Net.Http;
55
using System.Threading.Tasks;
6-
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models.Api20;
6+
using Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Models;
77

88
namespace Microsoft.Azure.PowerShell.Cmdlets.WebPubSub.Cmdlets
99
{

0 commit comments

Comments
 (0)