Skip to content

Commit 9edb171

Browse files
Migrate ServiceBus from generation to main (#24809)
* Move ServiceBus to main * suppress the breaking changes * update changelog --------- Co-authored-by: YanaXu <[email protected]>
1 parent cd91bc2 commit 9edb171

File tree

881 files changed

+98526
-32879
lines changed

Some content is hidden

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

881 files changed

+98526
-32879
lines changed

src/ServiceBus/ServiceBus.Autorest/Az.ServiceBus.format.ps1xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Configuration>
33
<ViewDefinitions>
44
<View>
5-
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.CorrelationFilterProperties</Name>
5+
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.CorrelationFilterProperties</Name>
66
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.CorrelationFilterProperties</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.CorrelationFilterProperties#Multiple</TypeName>
88
</ViewSelectedBy>
99
<TableControl>
1010
<TableHeaders>
@@ -24,9 +24,9 @@
2424
</TableControl>
2525
</View>
2626
<View>
27-
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.ResourceNamespacePatchTags</Name>
27+
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ResourceNamespacePatchTags</Name>
2828
<ViewSelectedBy>
29-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.ResourceNamespacePatchTags</TypeName>
29+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ResourceNamespacePatchTags#Multiple</TypeName>
3030
</ViewSelectedBy>
3131
<TableControl>
3232
<TableHeaders>
@@ -46,9 +46,9 @@
4646
</TableControl>
4747
</View>
4848
<View>
49-
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api10.TrackedResourceTags</Name>
49+
<Name>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.TrackedResourceTags</Name>
5050
<ViewSelectedBy>
51-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api10.TrackedResourceTags</TypeName>
51+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.TrackedResourceTags#Multiple</TypeName>
5252
</ViewSelectedBy>
5353
<TableControl>
5454
<TableHeaders>

src/ServiceBus/ServiceBus.Autorest/Az.ServiceBus.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.ServiceBus.private.dll'
1313
FormatsToProcess = './Az.ServiceBus.format.ps1xml'
14-
FunctionsToExport = 'Approve-AzServiceBusPrivateEndpointConnection', 'Complete-AzServiceBusMigration', 'Deny-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusAuthorizationRule', 'Get-AzServiceBusGeoDRConfiguration', 'Get-AzServiceBusKey', 'Get-AzServiceBusMigration', 'Get-AzServiceBusNamespace', 'Get-AzServiceBusNetworkRuleSet', 'Get-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusPrivateLink', 'Get-AzServiceBusQueue', 'Get-AzServiceBusRule', 'Get-AzServiceBusSubscription', 'Get-AzServiceBusTopic', 'New-AzServiceBusAuthorizationRule', 'New-AzServiceBusGeoDRConfiguration', 'New-AzServiceBusIPRuleConfig', 'New-AzServiceBusKey', 'New-AzServiceBusKeyVaultPropertiesObject', 'New-AzServiceBusNamespace', 'New-AzServiceBusQueue', 'New-AzServiceBusRule', 'New-AzServiceBusSubscription', 'New-AzServiceBusTopic', 'New-AzServiceBusVirtualNetworkRuleConfig', 'Remove-AzServiceBusAuthorizationRule', 'Remove-AzServiceBusGeoDRConfiguration', 'Remove-AzServiceBusMigration', 'Remove-AzServiceBusNamespace', 'Remove-AzServiceBusPrivateEndpointConnection', 'Remove-AzServiceBusQueue', 'Remove-AzServiceBusRule', 'Remove-AzServiceBusSubscription', 'Remove-AzServiceBusTopic', 'Set-AzServiceBusAuthorizationRule', 'Set-AzServiceBusGeoDRConfigurationBreakPair', 'Set-AzServiceBusGeoDRConfigurationFailOver', 'Set-AzServiceBusNamespace', 'Set-AzServiceBusNetworkRuleSet', 'Set-AzServiceBusQueue', 'Set-AzServiceBusRule', 'Set-AzServiceBusSubscription', 'Set-AzServiceBusTopic', 'Start-AzServiceBusMigration', 'Stop-AzServiceBusMigration', 'Test-AzServiceBusName', '*'
15-
AliasesToExport = 'Get-AzServiceBusNamespaceV2', 'New-AzServiceBusNamespaceV2', 'Remove-AzServiceBusNamespaceV2', 'Set-AzServiceBusNamespaceV2', '*'
14+
FunctionsToExport = 'Approve-AzServiceBusPrivateEndpointConnection', 'Complete-AzServiceBusMigration', 'Deny-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusAuthorizationRule', 'Get-AzServiceBusGeoDRConfiguration', 'Get-AzServiceBusKey', 'Get-AzServiceBusMigration', 'Get-AzServiceBusNamespace', 'Get-AzServiceBusNetworkRuleSet', 'Get-AzServiceBusPrivateEndpointConnection', 'Get-AzServiceBusPrivateLink', 'Get-AzServiceBusQueue', 'Get-AzServiceBusRule', 'Get-AzServiceBusSubscription', 'Get-AzServiceBusTopic', 'New-AzServiceBusAuthorizationRule', 'New-AzServiceBusGeoDRConfiguration', 'New-AzServiceBusIPRuleConfig', 'New-AzServiceBusKey', 'New-AzServiceBusKeyVaultPropertiesObject', 'New-AzServiceBusNamespace', 'New-AzServiceBusQueue', 'New-AzServiceBusRule', 'New-AzServiceBusSubscription', 'New-AzServiceBusTopic', 'New-AzServiceBusVirtualNetworkRuleConfig', 'Remove-AzServiceBusAuthorizationRule', 'Remove-AzServiceBusGeoDRConfiguration', 'Remove-AzServiceBusMigration', 'Remove-AzServiceBusNamespace', 'Remove-AzServiceBusPrivateEndpointConnection', 'Remove-AzServiceBusQueue', 'Remove-AzServiceBusRule', 'Remove-AzServiceBusSubscription', 'Remove-AzServiceBusTopic', 'Set-AzServiceBusAuthorizationRule', 'Set-AzServiceBusGeoDRConfigurationBreakPair', 'Set-AzServiceBusGeoDRConfigurationFailOver', 'Set-AzServiceBusNamespace', 'Set-AzServiceBusNetworkRuleSet', 'Set-AzServiceBusQueue', 'Set-AzServiceBusRule', 'Set-AzServiceBusSubscription', 'Set-AzServiceBusTopic', 'Start-AzServiceBusMigration', 'Stop-AzServiceBusMigration', 'Test-AzServiceBusName'
15+
AliasesToExport = 'Get-AzServiceBusNamespaceV2', 'New-AzServiceBusNamespaceV2', 'Remove-AzServiceBusNamespaceV2', 'Set-AzServiceBusNamespaceV2'
1616
PrivateData = @{
1717
PSData = @{
1818
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ServiceBus'

src/ServiceBus/ServiceBus.Autorest/README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ subject-prefix: $(service-name)
5959
identity-correction-for-post: true
6060
resourcegroup-append: true
6161
nested-object-to-string: true
62-
63-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
64-
use-extension:
65-
"@autorest/powershell": "3.x"
62+
keep-pec-and-plr: true
63+
disable-transform-identity-type: true
64+
flatten-userassignedidentity : false
6665

6766
directive:
6867
- where:
69-
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
68+
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaJsonFilePath$|^CreateViaJsonString$
7069
remove: true
7170
- where:
7271
variant: ^CreateViaIdentity$
@@ -524,14 +523,5 @@ directive:
524523
clear-alias: true
525524

526525
- model-cmdlet:
527-
- KeyVaultProperties
528-
529-
- where:
530-
parameter-name: Status
531-
set:
532-
breaking-change:
533-
old-parameter-type: EntityStatus
534-
new-parameter-type: String
535-
deprecated-by-version: 4.0.0
536-
deprecated-by-azversion: 12.0.0
537-
change-effective-date: 2024/05/21
526+
- model-name: KeyVaultProperties
527+
cmdlet-name: New-AzServiceBusKeyVaultPropertiesObject

src/ServiceBus/ServiceBus.Autorest/build-module.ps1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
15+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
1919
Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
2020
}
2121

22-
if(-not $Isolated -and -not $Debugger) {
22+
if(-not $NotIsolated -and -not $Debugger) {
2323
Write-Host -ForegroundColor Green 'Creating isolated process...'
2424
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
25-
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
25+
& "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2626

2727
if($LastExitCode -ne 0) {
2828
# Build failed. Don't attempt to run the module.
@@ -45,6 +45,14 @@ if(-not $Isolated -and -not $Debugger) {
4545
}
4646
}
4747

48+
if($UX) {
49+
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
50+
if($LastExitCode -ne 0) {
51+
# UX generation failed. Don't attempt to run the module.
52+
return
53+
}
54+
}
55+
4856
if($Pack) {
4957
. (Join-Path $PSScriptRoot 'pack-module.ps1')
5058
if($LastExitCode -ne 0) {
@@ -122,7 +130,7 @@ $examplesFolder = Join-Path $PSScriptRoot 'examples'
122130
$null = New-Item -ItemType Directory -Force -Path $examplesFolder
123131

124132
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125-
$modelCmdlets = @('KeyVaultProperties')
133+
$modelCmdlets = @(@{modelName="KeyVaultProperties"; cmdletName="New-AzServiceBusKeyVaultPropertiesObject"})
126134
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127135
if (Test-Path $modelCmdletFolder) {
128136
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder

src/ServiceBus/ServiceBus.Autorest/check-dependencies.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
15+
param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
1616
$ErrorActionPreference = 'Stop'
1717

18-
if(-not $Isolated) {
18+
if(-not $NotIsolated) {
1919
Write-Host -ForegroundColor Green 'Creating isolated process...'
2020
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
21-
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
21+
& "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
2222
return
2323
}
2424

src/ServiceBus/ServiceBus.Autorest/create-model-cmdlets.ps1

Lines changed: 92 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
function CreateModelCmdlet {
1717

18-
param([string[]]$Models)
18+
param([Hashtable[]]$Models)
1919

2020
if ($Models.Count -eq 0)
2121
{
@@ -30,7 +30,6 @@ function CreateModelCmdlet {
3030
} else {
3131
$ModuleName = 'Az.ServiceBus'
3232
}
33-
3433
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
3534
$Content = ''
3635
$null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
@@ -39,15 +38,34 @@ function CreateModelCmdlet {
3938

4039
$Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
4140
$Nodes = $Tree.ChildNodes().ChildNodes()
41+
$classConstantMember = @{}
4242
foreach ($Model in $Models)
4343
{
44-
$InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
44+
$ModelName = $Model.modelName
45+
$InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$ModelName") }
46+
$ClassNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'class') -and ($_.Identifier.value -eq "$ModelName") }
47+
$classConstantMember = @()
48+
foreach ($class in $ClassNode) {
49+
foreach ($member in $class.Members) {
50+
$isConstant = $false
51+
foreach ($attr in $member.AttributeLists) {
52+
$memberName = $attr.Attributes.Name.ToString()
53+
if ($memberName.EndsWith('.Constant')) {
54+
$isConstant = $true
55+
break
56+
}
57+
}
58+
if (($member.Modifiers.ToString() -eq 'public') -and $isConstant) {
59+
$classConstantMember += $member.Identifier.Value
60+
}
61+
}
62+
}
4563
if ($InterfaceNode.count -eq 0) {
4664
continue
4765
}
4866
# through a queue, we iterate all the parent models.
4967
$Queue = @($InterfaceNode)
50-
$visited = @("I$Model")
68+
$visited = @("I$ModelName")
5169
$AllInterfaceNodes = @()
5270
while ($Queue.count -ne 0)
5371
{
@@ -65,7 +83,7 @@ function CreateModelCmdlet {
6583
}
6684

6785
$Namespace = $InterfaceNode.Parent.Name
68-
$ObjectType = $Model
86+
$ObjectType = $ModelName
6987
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
7088
# remove duplicated module name
7189
if ($ObjectType.StartsWith('ServiceBus')) {
@@ -81,10 +99,15 @@ function CreateModelCmdlet {
8199
{
82100
foreach ($Member in $Node.Members)
83101
{
102+
if ($classConstantMember.Contains($Member.Identifier.Value)) {
103+
# skip constant member
104+
continue
105+
}
84106
$Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
85107
$Required = $false
86108
$Description = ""
87109
$Readonly = $False
110+
$mutability = @{Read = $true; Create = $true; Update = $true}
88111
foreach ($Argument in $Arguments)
89112
{
90113
if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
@@ -99,15 +122,37 @@ function CreateModelCmdlet {
99122
{
100123
$Readonly = $Argument.Expression.Token.Value
101124
}
125+
if ($Argument.NameEquals.Name.Identifier.Value -eq "Read")
126+
{
127+
$mutability.Read = $Argument.Expression.Token.Value
128+
}
129+
if ($Argument.NameEquals.Name.Identifier.Value -eq "Create")
130+
{
131+
$mutability.Create = $Argument.Expression.Token.Value
132+
}
133+
if ($Argument.NameEquals.Name.Identifier.Value -eq "Update")
134+
{
135+
$mutability.Update = $Argument.Expression.Token.Value
136+
}
102137
}
103138
if ($Readonly)
104139
{
105140
continue
106141
}
107142
$Identifier = $Member.Identifier.Value
108143
$Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
144+
$Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
145+
if ($Type.StartsWith("System.Collections.Generic.List"))
146+
{
147+
# if the type is a list, we need to convert it to array
148+
$matched = $Type -match '\<(?<Name>.+)\>$'
149+
if ($matched)
150+
{
151+
$Type = $matches.Name + '[]';
152+
}
153+
}
109154
$ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
110-
if ($Required)
155+
if ($Required -and $mutability.Create -and $mutability.Update)
111156
{
112157
$ParameterDefinePropertyList.Add("Mandatory")
113158
}
@@ -117,11 +162,9 @@ function CreateModelCmdlet {
117162
}
118163
$ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
119164
# check whether completer is needed
120-
$completer = '';
121-
if($Type.Split('.').Split('.')[-2] -eq 'Support') {
122-
# If Type is an array, need to strip []
123-
$strippedType = $Type.Replace('[]', '')
124-
$completer += "`n [ArgumentCompleter([${strippedType}])]"
165+
$completer = '';
166+
if(IsEnumType($Member)){
167+
$completer += GetCompleter($Member)
125168
}
126169
$ParameterDefineScript = "
127170
[Parameter($ParameterDefineProperty)]${completer}
@@ -137,6 +180,12 @@ function CreateModelCmdlet {
137180
$ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
138181
$ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
139182

183+
$cmdletName = "New-Az${ModulePrefix}${ObjectType}Object"
184+
if ('' -ne $Model.cmdletName) {
185+
$cmdletName = $Model.cmdletName
186+
}
187+
$OutputPath = Join-Path -ChildPath "${cmdletName}.ps1" -Path $OutputDir
188+
$cmdletNameInLowerCase = $cmdletName.ToLower()
140189
$Script = "
141190
# ----------------------------------------------------------------------------------
142191
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -162,9 +211,9 @@ Create an in-memory object for ${ObjectType}.
162211
.Outputs
163212
${ObjectTypeWithNamespace}
164213
.Link
165-
https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
214+
https://learn.microsoft.com/powershell/module/${ModuleName}/${cmdletNameInLowerCase}
166215
#>
167-
function New-Az${ModulePrefix}${ObjectType}Object {
216+
function ${cmdletName} {
168217
[OutputType('${ObjectTypeWithNamespace}')]
169218
[CmdletBinding(PositionalBinding=`$false)]
170219
Param(
@@ -181,3 +230,33 @@ ${ParameterAssignScript}
181230
Set-Content -Path $OutputPath -Value $Script
182231
}
183232
}
233+
234+
function IsEnumType {
235+
param (
236+
[Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property
237+
)
238+
$isEnum = $false
239+
foreach ($attr in $property.AttributeLists) {
240+
$attributeName = $attr.Attributes.Name.ToString()
241+
if ($attributeName.Contains('ArgumentCompleter')) {
242+
$isEnum = $true
243+
break
244+
}
245+
}
246+
return $isEnum;
247+
}
248+
249+
function GetCompleter {
250+
param (
251+
[Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax]$property
252+
)
253+
foreach ($attr in $property.AttributeLists) {
254+
$attributeName = $attr.Attributes.Name.ToString()
255+
if ($attributeName.Contains('ArgumentCompleter')) {
256+
$attributeName = $attributeName.Split("::")[-1]
257+
$possibleValues = [System.String]::Join(", ", $attr.Attributes.ArgumentList.Arguments)
258+
$completer += "`n [${attributeName}(${possibleValues})]"
259+
return $completer
260+
}
261+
}
262+
}

src/ServiceBus/ServiceBus.Autorest/custom/Approve-AzServiceBusPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Approves a ServiceBus PrivateEndpointConnection
2020
#>
2121

2222
function Approve-AzServiceBusPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/ServiceBus/ServiceBus.Autorest/custom/Deny-AzServiceBusPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Denies a ServiceBus PrivateEndpointConnection
2020
#>
2121

2222
function Deny-AzServiceBusPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusAuthorizationRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets the Authorization Rule of a ServiceBus namespace, queue or topic.
2020
#>
2121

2222
function Get-AzServiceBusAuthorizationRule{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.ISbAuthorizationRule])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.ISbAuthorizationRule])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedQueue', HelpMessage = "The name of the Authorization Rule")]

src/ServiceBus/ServiceBus.Autorest/custom/Get-AzServiceBusKey.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets the SASKey of a ServiceBus namespace, queue or topic.
2020
#>
2121

2222
function Get-AzServiceBusKey{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.Api20221001Preview.IAccessKeys])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ServiceBus.Models.IAccessKeys])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedQueue', Mandatory, HelpMessage = "The name of the Authorization Rule")]

0 commit comments

Comments
 (0)