Skip to content

Commit 34484d2

Browse files
[skip ci] Archive Schedule (#27970)
1 parent e43e098 commit 34484d2

File tree

52 files changed

+1546
-307
lines changed

Some content is hidden

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

52 files changed

+1546
-307
lines changed

generated/StorageAction/StorageAction.Autorest/Az.StorageAction.format.ps1xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,52 @@
847847
</TableRowEntries>
848848
</TableControl>
849849
</View>
850+
<View>
851+
<Name>Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskUpdateProperties</Name>
852+
<ViewSelectedBy>
853+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.StorageTaskUpdateProperties#Multiple</TypeName>
854+
</ViewSelectedBy>
855+
<TableControl>
856+
<TableHeaders>
857+
<TableColumnHeader>
858+
<Label>CreationTimeInUtc</Label>
859+
</TableColumnHeader>
860+
<TableColumnHeader>
861+
<Label>Description</Label>
862+
</TableColumnHeader>
863+
<TableColumnHeader>
864+
<Label>Enabled</Label>
865+
</TableColumnHeader>
866+
<TableColumnHeader>
867+
<Label>ProvisioningState</Label>
868+
</TableColumnHeader>
869+
<TableColumnHeader>
870+
<Label>TaskVersion</Label>
871+
</TableColumnHeader>
872+
</TableHeaders>
873+
<TableRowEntries>
874+
<TableRowEntry>
875+
<TableColumnItems>
876+
<TableColumnItem>
877+
<PropertyName>CreationTimeInUtc</PropertyName>
878+
</TableColumnItem>
879+
<TableColumnItem>
880+
<PropertyName>Description</PropertyName>
881+
</TableColumnItem>
882+
<TableColumnItem>
883+
<PropertyName>Enabled</PropertyName>
884+
</TableColumnItem>
885+
<TableColumnItem>
886+
<PropertyName>ProvisioningState</PropertyName>
887+
</TableColumnItem>
888+
<TableColumnItem>
889+
<PropertyName>TaskVersion</PropertyName>
890+
</TableColumnItem>
891+
</TableColumnItems>
892+
</TableRowEntry>
893+
</TableRowEntries>
894+
</TableControl>
895+
</View>
850896
<View>
851897
<Name>Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.SystemData</Name>
852898
<ViewSelectedBy>

generated/StorageAction/StorageAction.Autorest/Az.StorageAction.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
22
GUID = 'cc1d1de1-1601-4440-82c6-76c6673d8aba'
33
RootModule = './Az.StorageAction.psm1'
4-
ModuleVersion = '0.1.0'
4+
ModuleVersion = '1.0.0'
55
CompatiblePSEditions = 'Core', 'Desktop'
66
Author = 'Microsoft Corporation'
77
CompanyName = 'Microsoft Corporation'
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 - StorageAction")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+
28+
29+
30+

generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTask.ps1

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

138147
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
139148
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -159,8 +168,6 @@ begin {
159168
List1 = 'Az.StorageAction.private\Get-AzStorageActionTask_List1';
160169
}
161170
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.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
164171
if ($testPlayback) {
165172
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
166173
} else {
@@ -174,6 +181,9 @@ begin {
174181
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
175182
}
176183
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
184+
if ($wrappedCmd -eq $null) {
185+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
186+
}
177187
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
178188
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
179189
$steppablePipeline.Begin($PSCmdlet)

generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTaskAssignment.ps1

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ param(
5555

5656
[Parameter()]
5757
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Category('Query')]
58-
[System.String]
58+
[System.Int32]
5959
# Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response.
6060
${Maxpagesize},
6161

@@ -115,6 +115,15 @@ begin {
115115
$PSBoundParameters['OutBuffer'] = 1
116116
}
117117
$parameterSet = $PSCmdlet.ParameterSetName
118+
119+
$testPlayback = $false
120+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
121+
122+
$context = Get-AzContext
123+
if (-not $context -and -not $testPlayback) {
124+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
125+
exit
126+
}
118127

119128
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
120129
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -137,8 +146,6 @@ begin {
137146
List = 'Az.StorageAction.private\Get-AzStorageActionTaskAssignment_List';
138147
}
139148
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
140-
$testPlayback = $false
141-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
142149
if ($testPlayback) {
143150
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
144151
} else {
@@ -152,6 +159,9 @@ begin {
152159
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
153160
}
154161
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
162+
if ($wrappedCmd -eq $null) {
163+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
164+
}
155165
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
156166
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
157167
$steppablePipeline.Begin($PSCmdlet)

generated/StorageAction/StorageAction.Autorest/exports/Get-AzStorageActionTasksReport.ps1

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ param(
6262

6363
[Parameter()]
6464
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Category('Query')]
65-
[System.String]
65+
[System.Int32]
6666
# Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response.
6767
${Maxpagesize},
6868

@@ -122,6 +122,15 @@ begin {
122122
$PSBoundParameters['OutBuffer'] = 1
123123
}
124124
$parameterSet = $PSCmdlet.ParameterSetName
125+
126+
$testPlayback = $false
127+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
128+
129+
$context = Get-AzContext
130+
if (-not $context -and -not $testPlayback) {
131+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
132+
exit
133+
}
125134

126135
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
127136
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -144,8 +153,6 @@ begin {
144153
List = 'Az.StorageAction.private\Get-AzStorageActionTasksReport_List';
145154
}
146155
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
147-
$testPlayback = $false
148-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
149156
if ($testPlayback) {
150157
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
151158
} else {
@@ -159,6 +166,9 @@ begin {
159166
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
160167
}
161168
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
169+
if ($wrappedCmd -eq $null) {
170+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
171+
}
162172
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
163173
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
164174
$steppablePipeline.Begin($PSCmdlet)

generated/StorageAction/StorageAction.Autorest/exports/Invoke-AzStorageActionTaskPreviewAction.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,15 @@ begin {
214214
$PSBoundParameters['OutBuffer'] = 1
215215
}
216216
$parameterSet = $PSCmdlet.ParameterSetName
217+
218+
$testPlayback = $false
219+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
220+
221+
$context = Get-AzContext
222+
if (-not $context -and -not $testPlayback) {
223+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
224+
exit
225+
}
217226

218227
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
219228
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -239,8 +248,6 @@ begin {
239248
PreviewViaJsonString = 'Az.StorageAction.private\Invoke-AzStorageActionTaskPreviewAction_PreviewViaJsonString';
240249
}
241250
if (('PreviewExpanded', 'PreviewViaJsonFilePath', 'PreviewViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
242-
$testPlayback = $false
243-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
244251
if ($testPlayback) {
245252
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
246253
} else {
@@ -254,6 +261,9 @@ begin {
254261
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
255262
}
256263
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
264+
if ($wrappedCmd -eq $null) {
265+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
266+
}
257267
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
258268
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
259269
$steppablePipeline.Begin($PSCmdlet)

generated/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTask.ps1

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616

1717
<#
1818
.Synopsis
19-
Asynchronously creates a new storage task resource with the specified parameters.
19+
Asynchronously create a new storage task resource with the specified parameters.
2020
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
21-
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
21+
If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.
2222
.Description
23-
Asynchronously creates a new storage task resource with the specified parameters.
23+
Asynchronously create a new storage task resource with the specified parameters.
2424
If a storage task is already created and a subsequent create request is issued with different properties, the storage task properties will be updated.
25-
If a storage task is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
25+
If a storage task is already created and a subsequent create request is issued with the exact same set of properties, the request will succeed.
2626
.Example
2727
$ifoperation = New-AzStorageActionTaskOperationObject -Name SetBlobTier -Parameter @{"tier"= "Hot"} -OnFailure break -OnSuccess continue
2828
New-AzStorageActionTask -Name mytask1 -ResourceGroupName group001 -Location eastus2euap -Enabled -Description 'my storage task' -IfCondition "[[equals(AccessTier, 'Cool')]]" -IfOperation $ifoperation
@@ -128,7 +128,7 @@ param(
128128
[Parameter(ParameterSetName='CreateExpanded')]
129129
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Category('Body')]
130130
[System.Management.Automation.SwitchParameter]
131-
# Decides if enable a system assigned identity for the resource.
131+
# Determines whether to enable a system-assigned identity for the resource.
132132
${EnableSystemAssignedIdentity},
133133

134134
[Parameter(ParameterSetName='CreateExpanded')]
@@ -226,6 +226,15 @@ begin {
226226
$PSBoundParameters['OutBuffer'] = 1
227227
}
228228
$parameterSet = $PSCmdlet.ParameterSetName
229+
230+
$testPlayback = $false
231+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
232+
233+
$context = Get-AzContext
234+
if (-not $context -and -not $testPlayback) {
235+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
236+
exit
237+
}
229238

230239
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
231240
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -250,8 +259,6 @@ begin {
250259
CreateViaJsonString = 'Az.StorageAction.private\New-AzStorageActionTask_CreateViaJsonString';
251260
}
252261
if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
253-
$testPlayback = $false
254-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
255262
if ($testPlayback) {
256263
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
257264
} else {
@@ -265,6 +272,9 @@ begin {
265272
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
266273
}
267274
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
275+
if ($wrappedCmd -eq $null) {
276+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
277+
}
268278
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
269279
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
270280
$steppablePipeline.Begin($PSCmdlet)

generated/StorageAction/StorageAction.Autorest/exports/New-AzStorageActionTaskOperationObject.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ begin {
7373
$PSBoundParameters['OutBuffer'] = 1
7474
}
7575
$parameterSet = $PSCmdlet.ParameterSetName
76+
77+
$testPlayback = $false
78+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
7679

7780
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
7881
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -101,6 +104,9 @@ begin {
101104
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
102105
}
103106
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
107+
if ($wrappedCmd -eq $null) {
108+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
109+
}
104110
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
105111
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
106112
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)