Skip to content

Commit a66da29

Browse files
[skip ci] Archive 57c850a (#27506)
1 parent 57c850a commit a66da29

File tree

757 files changed

+11741
-2786
lines changed

Some content is hidden

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

757 files changed

+11741
-2786
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
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 - AppComplianceAutomation")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.3")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.3")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/Get-AzAcatControlAssessment.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ begin {
102102
$PSBoundParameters['OutBuffer'] = 1
103103
}
104104
$parameterSet = $PSCmdlet.ParameterSetName
105+
106+
$testPlayback = $false
107+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
108+
109+
$context = Get-AzContext
110+
if (-not $context -and -not $testPlayback) {
111+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
112+
exit
113+
}
105114

106115
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
107116
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -130,6 +139,9 @@ begin {
130139
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
131140
}
132141
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
142+
if ($wrappedCmd -eq $null) {
143+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
144+
}
133145
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
134146
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
135147
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/Get-AzAcatReport.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ begin {
119119
$PSBoundParameters['OutBuffer'] = 1
120120
}
121121
$parameterSet = $PSCmdlet.ParameterSetName
122+
123+
$testPlayback = $false
124+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
125+
126+
$context = Get-AzContext
127+
if (-not $context -and -not $testPlayback) {
128+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
129+
exit
130+
}
122131

123132
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
124133
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -148,6 +157,9 @@ begin {
148157
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
149158
}
150159
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
160+
if ($wrappedCmd -eq $null) {
161+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
162+
}
151163
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
152164
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
153165
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/Get-AzAcatWebhook.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ begin {
125125
$PSBoundParameters['OutBuffer'] = 1
126126
}
127127
$parameterSet = $PSCmdlet.ParameterSetName
128+
129+
$testPlayback = $false
130+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
131+
132+
$context = Get-AzContext
133+
if (-not $context -and -not $testPlayback) {
134+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
135+
exit
136+
}
128137

129138
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
130139
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -154,6 +163,9 @@ begin {
154163
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
155164
}
156165
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
166+
if ($wrappedCmd -eq $null) {
167+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
168+
}
157169
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
158170
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
159171
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/Invoke-AzAcatDownloadReport.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ begin {
130130
$PSBoundParameters['OutBuffer'] = 1
131131
}
132132
$parameterSet = $PSCmdlet.ParameterSetName
133+
134+
$testPlayback = $false
135+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
136+
137+
$context = Get-AzContext
138+
if (-not $context -and -not $testPlayback) {
139+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
140+
exit
141+
}
133142

134143
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
135144
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -158,6 +167,9 @@ begin {
158167
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
159168
}
160169
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
170+
if ($wrappedCmd -eq $null) {
171+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
172+
}
161173
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
162174
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
163175
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/New-AzAcatReport.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ begin {
168168
$PSBoundParameters['OutBuffer'] = 1
169169
}
170170
$parameterSet = $PSCmdlet.ParameterSetName
171+
172+
$testPlayback = $false
173+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
174+
175+
$context = Get-AzContext
176+
if (-not $context -and -not $testPlayback) {
177+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
178+
exit
179+
}
171180

172181
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
173182
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -197,6 +206,9 @@ begin {
197206
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
198207
}
199208
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
209+
if ($wrappedCmd -eq $null) {
210+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
211+
}
200212
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
201213
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
202214
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/New-AzAcatReportResourceObject.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ begin {
7676
$PSBoundParameters['OutBuffer'] = 1
7777
}
7878
$parameterSet = $PSCmdlet.ParameterSetName
79+
80+
$testPlayback = $false
81+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
7982

8083
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
8184
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -104,6 +107,9 @@ begin {
104107
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
105108
}
106109
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
110+
if ($wrappedCmd -eq $null) {
111+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
112+
}
107113
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
108114
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
109115
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/New-AzAcatWebhook.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,15 @@ begin {
176176
$PSBoundParameters['OutBuffer'] = 1
177177
}
178178
$parameterSet = $PSCmdlet.ParameterSetName
179+
180+
$testPlayback = $false
181+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
182+
183+
$context = Get-AzContext
184+
if (-not $context -and -not $testPlayback) {
185+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
186+
exit
187+
}
179188

180189
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
181190
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -205,6 +214,9 @@ begin {
205214
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
206215
}
207216
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
217+
if ($wrappedCmd -eq $null) {
218+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
219+
}
208220
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
209221
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
210222
$steppablePipeline.Begin($PSCmdlet)

generated/AppComplianceAutomation/AppComplianceAutomation.Autorest/exports/New-AzAcatWebhookResourceObject.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ begin {
9090
$PSBoundParameters['OutBuffer'] = 1
9191
}
9292
$parameterSet = $PSCmdlet.ParameterSetName
93+
94+
$testPlayback = $false
95+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.AppComplianceAutomation.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
9396

9497
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
9598
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -118,6 +121,9 @@ begin {
118121
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
119122
}
120123
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
124+
if ($wrappedCmd -eq $null) {
125+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
126+
}
121127
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
122128
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
123129
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)