Skip to content

Commit bcb3c97

Browse files
[skip ci] Archive d8fc592 (#28813)
1 parent d8fc592 commit bcb3c97

File tree

315 files changed

+29552
-8555
lines changed

Some content is hidden

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

315 files changed

+29552
-8555
lines changed

generated/Nginx/Nginx.Autorest/Az.Nginx.format.ps1xml

Lines changed: 232 additions & 202 deletions
Large diffs are not rendered by default.

generated/Nginx/Nginx.Autorest/Az.Nginx.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Nginx.private.dll'
1313
FormatsToProcess = './Az.Nginx.format.ps1xml'
14-
FunctionsToExport = 'Get-AzNginxCertificate', 'Get-AzNginxConfiguration', 'Get-AzNginxDeployment', 'Invoke-AzNginxAnalysisConfiguration', 'New-AzNginxCertificate', 'New-AzNginxConfiguration', 'New-AzNginxConfigurationFileObject', 'New-AzNginxDeployment', 'New-AzNginxNetworkProfileObject', 'New-AzNginxPrivateIPAddressObject', 'New-AzNginxPublicIPAddressObject', 'Remove-AzNginxCertificate', 'Remove-AzNginxConfiguration', 'Remove-AzNginxDeployment', 'Update-AzNginxDeployment', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzNginxCertificate', 'Get-AzNginxConfiguration', 'Get-AzNginxDeployment', 'Invoke-AzNginxAnalysisConfiguration', 'New-AzNginxCertificate', 'New-AzNginxConfiguration', 'New-AzNginxConfigurationFileObject', 'New-AzNginxDeployment', 'New-AzNginxNetworkProfileObject', 'New-AzNginxPrivateIPAddressObject', 'New-AzNginxPublicIPAddressObject', 'Remove-AzNginxCertificate', 'Remove-AzNginxConfiguration', 'Remove-AzNginxDeployment', 'Update-AzNginxCertificate', 'Update-AzNginxConfiguration', 'Update-AzNginxDeployment'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Nginx'

generated/Nginx/Nginx.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +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 - Nginx")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

generated/Nginx/Nginx.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

generated/Nginx/Nginx.Autorest/exports/Get-AzNginxCertificate.ps1

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Get-AzNginxCertificate -DeploymentName nginx-test -Name cert -ResourceGroupName
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity
2929
.Outputs
30-
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxCertificate
30+
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxCertificate
3131
.Notes
3232
COMPLEX PARAMETER PROPERTIES
3333
@@ -40,11 +40,19 @@ INPUTOBJECT <INginxIdentity>: Identity Parameter
4040
[Id <String>]: Resource identity path
4141
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
4242
[SubscriptionId <String>]: The ID of the target subscription.
43+
44+
NGINXDEPLOYMENTINPUTOBJECT <INginxIdentity>: Identity Parameter
45+
[CertificateName <String>]: The name of certificate
46+
[ConfigurationName <String>]: The name of configuration, only 'default' is supported value due to the singleton of NGINX conf
47+
[DeploymentName <String>]: The name of targeted NGINX deployment
48+
[Id <String>]: Resource identity path
49+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
50+
[SubscriptionId <String>]: The ID of the target subscription.
4351
.Link
4452
https://learn.microsoft.com/powershell/module/az.nginx/get-aznginxcertificate
4553
#>
4654
function Get-AzNginxCertificate {
47-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxCertificate])]
55+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxCertificate])]
4856
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4957
param(
5058
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -55,6 +63,7 @@ param(
5563
${DeploymentName},
5664

5765
[Parameter(ParameterSetName='Get', Mandatory)]
66+
[Parameter(ParameterSetName='GetViaIdentityNginxDeployment', Mandatory)]
5867
[Alias('CertificateName')]
5968
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
6069
[System.String]
@@ -81,9 +90,14 @@ param(
8190
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
8291
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity]
8392
# Identity Parameter
84-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8593
${InputObject},
8694

95+
[Parameter(ParameterSetName='GetViaIdentityNginxDeployment', Mandatory, ValueFromPipeline)]
96+
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
97+
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity]
98+
# Identity Parameter
99+
${NginxDeploymentInputObject},
100+
87101
[Parameter()]
88102
[Alias('AzureRMContext', 'AzureCredential')]
89103
[ValidateNotNull()]
@@ -140,6 +154,15 @@ begin {
140154
$PSBoundParameters['OutBuffer'] = 1
141155
}
142156
$parameterSet = $PSCmdlet.ParameterSetName
157+
158+
$testPlayback = $false
159+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
160+
161+
$context = Get-AzContext
162+
if (-not $context -and -not $testPlayback) {
163+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
164+
exit
165+
}
143166

144167
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
145168
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,11 +184,10 @@ begin {
161184
$mapping = @{
162185
Get = 'Az.Nginx.private\Get-AzNginxCertificate_Get';
163186
GetViaIdentity = 'Az.Nginx.private\Get-AzNginxCertificate_GetViaIdentity';
187+
GetViaIdentityNginxDeployment = 'Az.Nginx.private\Get-AzNginxCertificate_GetViaIdentityNginxDeployment';
164188
List = 'Az.Nginx.private\Get-AzNginxCertificate_List';
165189
}
166-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
167-
$testPlayback = $false
168-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
190+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
169191
if ($testPlayback) {
170192
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
171193
} else {
@@ -179,6 +201,9 @@ begin {
179201
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
180202
}
181203
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
204+
if ($wrappedCmd -eq $null) {
205+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
206+
}
182207
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
183208
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
184209
$steppablePipeline.Begin($PSCmdlet)

generated/Nginx/Nginx.Autorest/exports/Get-AzNginxConfiguration.ps1

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-AzNginxConfiguration -DeploymentName nginx-test -Name default -ResourceGroup
2525
.Inputs
2626
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity
2727
.Outputs
28-
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxConfiguration
28+
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxConfiguration
2929
.Notes
3030
COMPLEX PARAMETER PROPERTIES
3131
@@ -38,11 +38,19 @@ INPUTOBJECT <INginxIdentity>: Identity Parameter
3838
[Id <String>]: Resource identity path
3939
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
4040
[SubscriptionId <String>]: The ID of the target subscription.
41+
42+
NGINXDEPLOYMENTINPUTOBJECT <INginxIdentity>: Identity Parameter
43+
[CertificateName <String>]: The name of certificate
44+
[ConfigurationName <String>]: The name of configuration, only 'default' is supported value due to the singleton of NGINX conf
45+
[DeploymentName <String>]: The name of targeted NGINX deployment
46+
[Id <String>]: Resource identity path
47+
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
48+
[SubscriptionId <String>]: The ID of the target subscription.
4149
.Link
4250
https://learn.microsoft.com/powershell/module/az.nginx/get-aznginxconfiguration
4351
#>
4452
function Get-AzNginxConfiguration {
45-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxConfiguration])]
53+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxConfiguration])]
4654
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4755
param(
4856
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -53,6 +61,7 @@ param(
5361
${DeploymentName},
5462

5563
[Parameter(ParameterSetName='Get', Mandatory)]
64+
[Parameter(ParameterSetName='GetViaIdentityNginxDeployment', Mandatory)]
5665
[Alias('ConfigurationName')]
5766
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
5867
[System.String]
@@ -79,9 +88,14 @@ param(
7988
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
8089
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity]
8190
# Identity Parameter
82-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8391
${InputObject},
8492

93+
[Parameter(ParameterSetName='GetViaIdentityNginxDeployment', Mandatory, ValueFromPipeline)]
94+
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
95+
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity]
96+
# Identity Parameter
97+
${NginxDeploymentInputObject},
98+
8599
[Parameter()]
86100
[Alias('AzureRMContext', 'AzureCredential')]
87101
[ValidateNotNull()]
@@ -138,6 +152,15 @@ begin {
138152
$PSBoundParameters['OutBuffer'] = 1
139153
}
140154
$parameterSet = $PSCmdlet.ParameterSetName
155+
156+
$testPlayback = $false
157+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
158+
159+
$context = Get-AzContext
160+
if (-not $context -and -not $testPlayback) {
161+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
162+
exit
163+
}
141164

142165
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
143166
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -159,11 +182,10 @@ begin {
159182
$mapping = @{
160183
Get = 'Az.Nginx.private\Get-AzNginxConfiguration_Get';
161184
GetViaIdentity = 'Az.Nginx.private\Get-AzNginxConfiguration_GetViaIdentity';
185+
GetViaIdentityNginxDeployment = 'Az.Nginx.private\Get-AzNginxConfiguration_GetViaIdentityNginxDeployment';
162186
List = 'Az.Nginx.private\Get-AzNginxConfiguration_List';
163187
}
164-
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
165-
$testPlayback = $false
166-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
188+
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
167189
if ($testPlayback) {
168190
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
169191
} else {
@@ -177,6 +199,9 @@ begin {
177199
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
178200
}
179201
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
202+
if ($wrappedCmd -eq $null) {
203+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
204+
}
180205
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
181206
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
182207
$steppablePipeline.Begin($PSCmdlet)

generated/Nginx/Nginx.Autorest/exports/Get-AzNginxDeployment.ps1

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-AzNginxDeployment -ResourceGroupName nginx-test-rg
2929
.Inputs
3030
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity
3131
.Outputs
32-
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxDeployment
32+
Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxDeployment
3333
.Notes
3434
COMPLEX PARAMETER PROPERTIES
3535
@@ -46,7 +46,7 @@ INPUTOBJECT <INginxIdentity>: Identity Parameter
4646
https://learn.microsoft.com/powershell/module/az.nginx/get-aznginxdeployment
4747
#>
4848
function Get-AzNginxDeployment {
49-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxDeployment])]
49+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxDeployment])]
5050
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
5151
param(
5252
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -77,7 +77,6 @@ param(
7777
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Category('Path')]
7878
[Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.INginxIdentity]
7979
# Identity Parameter
80-
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
8180
${InputObject},
8281

8382
[Parameter()]
@@ -136,6 +135,15 @@ begin {
136135
$PSBoundParameters['OutBuffer'] = 1
137136
}
138137
$parameterSet = $PSCmdlet.ParameterSetName
138+
139+
$testPlayback = $false
140+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
141+
142+
$context = Get-AzContext
143+
if (-not $context -and -not $testPlayback) {
144+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
145+
exit
146+
}
139147

140148
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
141149
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -160,9 +168,7 @@ begin {
160168
List = 'Az.Nginx.private\Get-AzNginxDeployment_List';
161169
List1 = 'Az.Nginx.private\Get-AzNginxDeployment_List1';
162170
}
163-
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
164-
$testPlayback = $false
165-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Nginx.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
171+
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
166172
if ($testPlayback) {
167173
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
168174
} else {
@@ -176,6 +182,9 @@ begin {
176182
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
177183
}
178184
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
185+
if ($wrappedCmd -eq $null) {
186+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
187+
}
179188
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
180189
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
181190
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)