Skip to content

Commit 93fe2cb

Browse files
[skip ci] Archive b941cd4 (#27414)
1 parent fd27dc1 commit 93fe2cb

File tree

146 files changed

+18905
-393
lines changed

Some content is hidden

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

146 files changed

+18905
-393
lines changed

generated/Alb/Alb.Autorest/Az.Alb.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>Alb</PsModuleName>
44
<PsRootModuleName>Alb</PsRootModuleName>
5+
<PsModuleFolder>Alb.Autorest</PsModuleFolder>
56
</PropertyGroup>
67

78
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
89
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
9-
1010
</Project>

generated/Alb/Alb.Autorest/Az.Alb.format.ps1xml

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<TableColumnHeader>
1818
<Label>ResourceGroupName</Label>
1919
</TableColumnHeader>
20+
<TableColumnHeader>
21+
<Label>SecurityPolicyName</Label>
22+
</TableColumnHeader>
2023
<TableColumnHeader>
2124
<Label>SubscriptionId</Label>
2225
</TableColumnHeader>
@@ -36,6 +39,9 @@
3639
<TableColumnItem>
3740
<PropertyName>ResourceGroupName</PropertyName>
3841
</TableColumnItem>
42+
<TableColumnItem>
43+
<PropertyName>SecurityPolicyName</PropertyName>
44+
</TableColumnItem>
3945
<TableColumnItem>
4046
<PropertyName>SubscriptionId</PropertyName>
4147
</TableColumnItem>
@@ -469,6 +475,130 @@
469475
</TableRowEntries>
470476
</TableControl>
471477
</View>
478+
<View>
479+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicy</Name>
480+
<ViewSelectedBy>
481+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicy#Multiple</TypeName>
482+
</ViewSelectedBy>
483+
<TableControl>
484+
<TableHeaders>
485+
<TableColumnHeader>
486+
<Label>Name</Label>
487+
</TableColumnHeader>
488+
<TableColumnHeader>
489+
<Label>ResourceGroupName</Label>
490+
</TableColumnHeader>
491+
<TableColumnHeader>
492+
<Label>Location</Label>
493+
</TableColumnHeader>
494+
<TableColumnHeader>
495+
<Label>PolicyType</Label>
496+
</TableColumnHeader>
497+
<TableColumnHeader>
498+
<Label>WafPolicyId</Label>
499+
</TableColumnHeader>
500+
<TableColumnHeader>
501+
<Label>ProvisioningState</Label>
502+
</TableColumnHeader>
503+
</TableHeaders>
504+
<TableRowEntries>
505+
<TableRowEntry>
506+
<TableColumnItems>
507+
<TableColumnItem>
508+
<PropertyName>Name</PropertyName>
509+
</TableColumnItem>
510+
<TableColumnItem>
511+
<PropertyName>ResourceGroupName</PropertyName>
512+
</TableColumnItem>
513+
<TableColumnItem>
514+
<PropertyName>Location</PropertyName>
515+
</TableColumnItem>
516+
<TableColumnItem>
517+
<PropertyName>PolicyType</PropertyName>
518+
</TableColumnItem>
519+
<TableColumnItem>
520+
<PropertyName>WafPolicyId</PropertyName>
521+
</TableColumnItem>
522+
<TableColumnItem>
523+
<PropertyName>ProvisioningState</PropertyName>
524+
</TableColumnItem>
525+
</TableColumnItems>
526+
</TableRowEntry>
527+
</TableRowEntries>
528+
</TableControl>
529+
</View>
530+
<View>
531+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyListResult</Name>
532+
<ViewSelectedBy>
533+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyListResult#Multiple</TypeName>
534+
</ViewSelectedBy>
535+
<TableControl>
536+
<TableHeaders>
537+
<TableColumnHeader>
538+
<Label>NextLink</Label>
539+
</TableColumnHeader>
540+
</TableHeaders>
541+
<TableRowEntries>
542+
<TableRowEntry>
543+
<TableColumnItems>
544+
<TableColumnItem>
545+
<PropertyName>NextLink</PropertyName>
546+
</TableColumnItem>
547+
</TableColumnItems>
548+
</TableRowEntry>
549+
</TableRowEntries>
550+
</TableControl>
551+
</View>
552+
<View>
553+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyProperties</Name>
554+
<ViewSelectedBy>
555+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyProperties#Multiple</TypeName>
556+
</ViewSelectedBy>
557+
<TableControl>
558+
<TableHeaders>
559+
<TableColumnHeader>
560+
<Label>PolicyType</Label>
561+
</TableColumnHeader>
562+
<TableColumnHeader>
563+
<Label>ProvisioningState</Label>
564+
</TableColumnHeader>
565+
</TableHeaders>
566+
<TableRowEntries>
567+
<TableRowEntry>
568+
<TableColumnItems>
569+
<TableColumnItem>
570+
<PropertyName>PolicyType</PropertyName>
571+
</TableColumnItem>
572+
<TableColumnItem>
573+
<PropertyName>ProvisioningState</PropertyName>
574+
</TableColumnItem>
575+
</TableColumnItems>
576+
</TableRowEntry>
577+
</TableRowEntries>
578+
</TableControl>
579+
</View>
580+
<View>
581+
<Name>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyUpdateTags</Name>
582+
<ViewSelectedBy>
583+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SecurityPolicyUpdateTags#Multiple</TypeName>
584+
</ViewSelectedBy>
585+
<TableControl>
586+
<TableHeaders>
587+
<TableColumnHeader>
588+
<Label>Item</Label>
589+
</TableColumnHeader>
590+
</TableHeaders>
591+
<TableRowEntries>
592+
<TableRowEntry>
593+
<TableColumnItems>
594+
<TableColumnItem>
595+
<PropertyName>Item</PropertyName>
596+
</TableColumnItem>
597+
</TableColumnItems>
598+
</TableRowEntry>
599+
</TableRowEntries>
600+
</TableControl>
601+
</View>
472602
<View>
473603
<Name>Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.SystemData</Name>
474604
<ViewSelectedBy>

generated/Alb/Alb.Autorest/Az.Alb.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Alb.private.dll'
1313
FormatsToProcess = './Az.Alb.format.ps1xml'
14-
FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'New-AzAlb', 'New-AzAlbAssociation', 'New-AzAlbFrontend', 'Remove-AzAlb', 'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Update-AzAlb', 'Update-AzAlbAssociation', 'Update-AzAlbFrontend'
14+
FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'Get-AzAlbSecurityPolicy', 'New-AzAlb', 'New-AzAlbAssociation', 'New-AzAlbFrontend', 'New-AzAlbSecurityPolicyWaf', 'Remove-AzAlb', 'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Remove-AzAlbSecurityPolicy', 'Update-AzAlb', 'Update-AzAlbAssociation', 'Update-AzAlbFrontend', 'Update-AzAlbSecurityPolicyWaf'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Alb'
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// ----------------------------------------------------------------------------------
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
53
// you may not use this file except in compliance with the License.
64
// You may obtain a copy of the License at
75
// http://www.apache.org/licenses/LICENSE-2.0
86
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
108
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
// See the License for the specific language governing permissions and
1210
// limitations under the License.
13-
// ----------------------------------------------------------------------------------
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
1413

1514
using System;
1615
using System.Reflection;
16+
using System.Runtime.CompilerServices;
1717
using System.Runtime.InteropServices;
1818

19-
[assembly: AssemblyTitle("Microsoft Azure Powershell - Alb")]
20-
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21-
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22-
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23-
24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("ed56d287-4070-4e7f-acb4-27c6d768f685")]
27-
[assembly: AssemblyVersion("0.1.4")]
28-
[assembly: AssemblyFileVersion("0.1.4")]
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Alb")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.4")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.4")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/Alb/Alb.Autorest/exports/Get-AzAlb.ps1

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ INPUTOBJECT <IAlbIdentity>: Identity Parameter
4040
[FrontendName <String>]: Frontends
4141
[Id <String>]: Resource identity path
4242
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
43+
[SecurityPolicyName <String>]: SecurityPolicy
4344
[SubscriptionId <String>]: The ID of the target subscription.
4445
[TrafficControllerName <String>]: traffic controller name for path
4546
.Link
@@ -134,6 +135,15 @@ begin {
134135
$PSBoundParameters['OutBuffer'] = 1
135136
}
136137
$parameterSet = $PSCmdlet.ParameterSetName
138+
139+
$testPlayback = $false
140+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.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+
}
137147

138148
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
139149
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -159,8 +169,6 @@ begin {
159169
List1 = 'Az.Alb.private\Get-AzAlb_List1';
160170
}
161171
if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
162-
$testPlayback = $false
163-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
164172
if ($testPlayback) {
165173
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
166174
} else {
@@ -174,6 +182,9 @@ begin {
174182
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
175183
}
176184
$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+
}
177188
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
178189
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
179190
$steppablePipeline.Begin($PSCmdlet)

generated/Alb/Alb.Autorest/exports/Get-AzAlbAssociation.ps1

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ INPUTOBJECT <IAlbIdentity>: Identity Parameter
3838
[FrontendName <String>]: Frontends
3939
[Id <String>]: Resource identity path
4040
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
41+
[SecurityPolicyName <String>]: SecurityPolicy
4142
[SubscriptionId <String>]: The ID of the target subscription.
4243
[TrafficControllerName <String>]: traffic controller name for path
4344
@@ -46,6 +47,7 @@ TRAFFICCONTROLLERINPUTOBJECT <IAlbIdentity>: Identity Parameter
4647
[FrontendName <String>]: Frontends
4748
[Id <String>]: Resource identity path
4849
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
50+
[SecurityPolicyName <String>]: SecurityPolicy
4951
[SubscriptionId <String>]: The ID of the target subscription.
5052
[TrafficControllerName <String>]: traffic controller name for path
5153
.Link
@@ -153,6 +155,15 @@ begin {
153155
$PSBoundParameters['OutBuffer'] = 1
154156
}
155157
$parameterSet = $PSCmdlet.ParameterSetName
158+
159+
$testPlayback = $false
160+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
161+
162+
$context = Get-AzContext
163+
if (-not $context -and -not $testPlayback) {
164+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
165+
exit
166+
}
156167

157168
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
158169
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -178,8 +189,6 @@ begin {
178189
List = 'Az.Alb.private\Get-AzAlbAssociation_List';
179190
}
180191
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
181-
$testPlayback = $false
182-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
183192
if ($testPlayback) {
184193
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
185194
} else {
@@ -193,6 +202,9 @@ begin {
193202
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
194203
}
195204
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
205+
if ($wrappedCmd -eq $null) {
206+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
207+
}
196208
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
197209
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
198210
$steppablePipeline.Begin($PSCmdlet)

generated/Alb/Alb.Autorest/exports/Get-AzAlbFrontend.ps1

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ INPUTOBJECT <IAlbIdentity>: Identity Parameter
3838
[FrontendName <String>]: Frontends
3939
[Id <String>]: Resource identity path
4040
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
41+
[SecurityPolicyName <String>]: SecurityPolicy
4142
[SubscriptionId <String>]: The ID of the target subscription.
4243
[TrafficControllerName <String>]: traffic controller name for path
4344
@@ -46,6 +47,7 @@ TRAFFICCONTROLLERINPUTOBJECT <IAlbIdentity>: Identity Parameter
4647
[FrontendName <String>]: Frontends
4748
[Id <String>]: Resource identity path
4849
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
50+
[SecurityPolicyName <String>]: SecurityPolicy
4951
[SubscriptionId <String>]: The ID of the target subscription.
5052
[TrafficControllerName <String>]: traffic controller name for path
5153
.Link
@@ -153,6 +155,15 @@ begin {
153155
$PSBoundParameters['OutBuffer'] = 1
154156
}
155157
$parameterSet = $PSCmdlet.ParameterSetName
158+
159+
$testPlayback = $false
160+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
161+
162+
$context = Get-AzContext
163+
if (-not $context -and -not $testPlayback) {
164+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
165+
exit
166+
}
156167

157168
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
158169
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -178,8 +189,6 @@ begin {
178189
List = 'Az.Alb.private\Get-AzAlbFrontend_List';
179190
}
180191
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
181-
$testPlayback = $false
182-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Alb.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
183192
if ($testPlayback) {
184193
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
185194
} else {
@@ -193,6 +202,9 @@ begin {
193202
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
194203
}
195204
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
205+
if ($wrappedCmd -eq $null) {
206+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
207+
}
196208
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
197209
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
198210
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)