You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/StackAdmin/Azs.AzureBridge.Admin/Module/Azs.AzureBridge.Admin/Generated.PowerShell.Commands/SwaggerPathCommands/Invoke-AzsAzureBridgeProductDownload.ps1
+57-47Lines changed: 57 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Licensed under the MIT License. See License.txt in the project root for license
Write-Verbose-Message 'Failed to map parameter set to operation method.'
107
-
throw'Module failed to find operation to execute.'
108
-
}
106
+
if ($PSCmdlet.ShouldProcess("$ProductName","Start product download")) {
107
+
if (($Force.IsPresent-or$PSCmdlet.ShouldContinue("Start the product download?","Performing operation DownloadWithHttpMessagesAsync on $ProductName."))) {
109
108
110
-
Write-Verbose-Message "Waiting for the operation to complete."
111
-
112
-
$PSSwaggerJobScriptBlock= {
113
-
[CmdletBinding()]
114
-
param(
115
-
[Parameter(Mandatory=$true)]
116
-
[System.Threading.Tasks.Task]
117
-
$TaskResult,
118
-
119
-
[Parameter(Mandatory=$true)]
120
-
[string]
121
-
$TaskHelperFilePath
122
-
)
123
-
if ($TaskResult) {
124
-
.$TaskHelperFilePath
125
-
$GetTaskResult_params=@{
126
-
TaskResult=$TaskResult
109
+
if ('Products_Download'-eq$PsCmdlet.ParameterSetName-or'ResourceId'-eq$PsCmdlet.ParameterSetName) {
110
+
Write-Verbose-Message 'Performing operation DownloadWithHttpMessagesAsync on $AzureBridgeAdminClient.'
0 commit comments