diff --git a/src/DataBox/DataBox.Autorest/Az.DataBox.psd1 b/src/DataBox/DataBox.Autorest/Az.DataBox.psd1 index e052ea7021e4..e7ff2a26c6cc 100644 --- a/src/DataBox/DataBox.Autorest/Az.DataBox.psd1 +++ b/src/DataBox/DataBox.Autorest/Az.DataBox.psd1 @@ -1,143 +1,24 @@ -# -# Module manifest for module 'Az.DataBox' -# -# Generated by: Microsoft Corporation -# -# Generated on: 6/15/2023 -# - @{ - -# Script module or binary module file associated with this manifest. -RootModule = './Az.DataBox.psm1' - -# Version number of this module. -ModuleVersion = '0.3.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = '9602a6b3-8b77-4f08-a6ed-edefff13e149' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: DataBox cmdlets' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.3'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = './bin/Az.DataBox.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.DataBox.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzDataBoxJob', 'Get-AzDataBoxJobCredential', - 'New-AzDataBoxContactDetailsObject', - 'New-AzDataBoxCustomerDiskJobDetailsObject', - 'New-AzDataBoxDiskJobDetailsObject', - 'New-AzDataBoxHeavyJobDetailsObject', 'New-AzDataBoxJob', - 'New-AzDataBoxJobDetailsObject', - 'New-AzDataBoxKeyEncryptionKeyObject', - 'New-AzDataBoxManagedDiskDetailsObject', - 'New-AzDataBoxShippingAddressObject', - 'New-AzDataBoxStorageAccountDetailsObject', - 'New-AzDataBoxTransferConfigurationObject', 'Remove-AzDataBoxJob', - 'Stop-AzDataBoxJob', 'Update-AzDataBoxJob' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = '*' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - + GUID = '9602a6b3-8b77-4f08-a6ed-edefff13e149' + RootModule = './Az.DataBox.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: DataBox cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.DataBox.private.dll' + FormatsToProcess = './Az.DataBox.format.ps1xml' + FunctionsToExport = 'Get-AzDataBoxJob', 'Get-AzDataBoxJobCredential', 'New-AzDataBoxContactDetailsObject', 'New-AzDataBoxCustomerDiskJobDetailsObject', 'New-AzDataBoxDiskJobDetailsObject', 'New-AzDataBoxHeavyJobDetailsObject', 'New-AzDataBoxJob', 'New-AzDataBoxJobDetailsObject', 'New-AzDataBoxKeyEncryptionKeyObject', 'New-AzDataBoxManagedDiskDetailsObject', 'New-AzDataBoxShippingAddressObject', 'New-AzDataBoxStorageAccountDetailsObject', 'New-AzDataBoxTransferConfigurationObject', 'Remove-AzDataBoxJob', 'Stop-AzDataBoxJob', 'Update-AzDataBoxJob', '*' + AliasesToExport = '*' + PrivateData = @{ PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','DataBox' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - # ReleaseNotes = '' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DataBox' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } } - diff --git a/src/DataBox/DataBox.Autorest/Az.DataBox.psm1 b/src/DataBox/DataBox.Autorest/Az.DataBox.psm1 index cf2a4211d1df..75e5eac3603c 100644 --- a/src/DataBox/DataBox.Autorest/Az.DataBox.psm1 +++ b/src/DataBox/DataBox.Autorest/Az.DataBox.psm1 @@ -47,37 +47,41 @@ # Ask for the shared functionality table $VTable = Register-AzModule - + # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad # Following two delegates are added for telemetry $instance.GetTelemetryId = $VTable.GetTelemetryId $instance.Telemetry = $VTable.Telemetry - + + # Delegate to sanitize the output object + $instance.SanitizeOutput = $VTable.SanitizerHandler + + # Delegate to get the telemetry info + $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo # Tweaks the pipeline per call $instance.OnNewRequest = $VTable.OnNewRequest - + # Gets shared parameter values $instance.GetParameterValue = $VTable.GetParameterValue - + # Allows shared module to listen to events from this module $instance.EventListener = $VTable.EventListener - + # Gets shared argument completers $instance.ArgumentCompleter = $VTable.ArgumentCompleter - + # The name of the currently selected Azure profile $instance.ProfileName = $VTable.ProfileName - # Load the custom module $customModulePath = Join-Path $PSScriptRoot './custom/Az.DataBox.custom.psm1' if(Test-Path $customModulePath) { $null = Import-Module -Name $customModulePath } - + # Export nothing to clear implicit exports Export-ModuleMember @@ -97,12 +101,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/DataBox/DataBox.Autorest/README.md b/src/DataBox/DataBox.Autorest/README.md index 113c681324c1..153b5bb8b81d 100644 --- a/src/DataBox/DataBox.Autorest/README.md +++ b/src/DataBox/DataBox.Autorest/README.md @@ -3,7 +3,6 @@ This directory contains the PowerShell module for the DataBox service. --- - ## Info - Modifiable: yes - Generated: all @@ -28,9 +27,10 @@ For information on how to develop for `Az.DataBox`, see [how-to.md](how-to.md). > see https://aka.ms/autorest ``` yaml +commit: 0dd49a444195fef7f3555cad038cb7665cbd928c require: # readme.azure.noprofile.md is the common configuration file - - $(this-folder)/../readme.azure.noprofile.md + - $(this-folder)/../../readme.azure.noprofile.md input-file: # You need to specify your swagger files here. - $(repo)/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/databox.json @@ -48,6 +48,10 @@ inlining-threshold: 50 # uncomment following line to support viaIdentity for these post APIs # identity-correction-for-post: true +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set diff --git a/src/DataBox/DataBox.Autorest/build-module.ps1 b/src/DataBox/DataBox.Autorest/build-module.ps1 index 9b5ecb09b84b..44addbb5da1e 100644 --- a/src/DataBox/DataBox.Autorest/build-module.ps1 +++ b/src/DataBox/DataBox.Autorest/build-module.ps1 @@ -143,7 +143,8 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } Write-Host -ForegroundColor Green 'Creating format.ps1xml...' @@ -162,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol Write-Host -ForegroundColor Green 'Creating example stubs...' Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder +if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) +{ + Write-Host -ForegroundColor Green 'Creating ux metadata...' + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') +} + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 b/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 index 55c01586b303..0d2443c674fe 100644 --- a/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 @@ -150,10 +150,20 @@ begin { List1 = 'Az.DataBox.private\Get-AzDataBoxJob_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 b/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 index 19d6199dd6f7..271441f2492a 100644 --- a/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 @@ -134,10 +134,20 @@ begin { List = 'Az.DataBox.private\Get-AzDataBoxJobCredential_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 index 6e547fddd551..eeff9e1744fb 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 @@ -107,6 +107,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 index d423480f7ea4..50995c2169c3 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 @@ -245,6 +245,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 index decfb8503ed2..4d52987e9bba 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 @@ -237,6 +237,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 index d35eab16f203..36368c9ba982 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 @@ -229,6 +229,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 index e51cf7af78ae..fea88e8e2c11 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 @@ -375,10 +375,20 @@ begin { CreateExpanded = 'Az.DataBox.private\New-AzDataBoxJob_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 index 830078463fe8..09fdc98f30b5 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 @@ -229,6 +229,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 index 77e967fb2fb0..2f846c5da90c 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 @@ -98,6 +98,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 index 93abd2913ff0..3f0021476d27 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 @@ -93,6 +93,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 index 9c5e0aea2b94..267022310538 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 @@ -135,6 +135,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 index 26b1ec5b8c57..d911d45906a3 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 @@ -87,6 +87,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 index 7191f4ce4d0b..f2e6854b0dc9 100644 --- a/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 @@ -106,6 +106,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 index e29e13b281af..94d49050ea7c 100644 --- a/src/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -134,10 +134,20 @@ begin { List = 'Az.DataBox.private\Get-AzDataBoxJobCredential_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -318,10 +328,20 @@ begin { List1 = 'Az.DataBox.private\Get-AzDataBoxJob_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -727,10 +747,20 @@ begin { CreateExpanded = 'Az.DataBox.private\New-AzDataBoxJob_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -909,10 +939,20 @@ begin { Delete = 'Az.DataBox.private\Remove-AzDataBoxJob_Delete'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1086,10 +1126,20 @@ begin { CancelExpanded = 'Az.DataBox.private\Stop-AzDataBoxJob_CancelExpanded'; } if (('CancelExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1488,10 +1538,20 @@ begin { UpdateExpanded = 'Az.DataBox.private\Update-AzDataBoxJob_UpdateExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1629,6 +1689,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -1904,6 +1968,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2171,6 +2239,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2430,6 +2502,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2689,6 +2765,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2817,6 +2897,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -2940,6 +3024,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3105,6 +3193,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3222,6 +3314,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) @@ -3358,6 +3454,10 @@ begin { } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/Remove-AzDataBoxJob.ps1 b/src/DataBox/DataBox.Autorest/exports/Remove-AzDataBoxJob.ps1 index 22ac7cefdc29..92ffdd00c566 100644 --- a/src/DataBox/DataBox.Autorest/exports/Remove-AzDataBoxJob.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/Remove-AzDataBoxJob.ps1 @@ -148,10 +148,20 @@ begin { Delete = 'Az.DataBox.private\Remove-AzDataBoxJob_Delete'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/Stop-AzDataBoxJob.ps1 b/src/DataBox/DataBox.Autorest/exports/Stop-AzDataBoxJob.ps1 index 68e35cf12b38..e68483a7ddda 100644 --- a/src/DataBox/DataBox.Autorest/exports/Stop-AzDataBoxJob.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/Stop-AzDataBoxJob.ps1 @@ -143,10 +143,20 @@ begin { CancelExpanded = 'Az.DataBox.private\Stop-AzDataBoxJob_CancelExpanded'; } if (('CancelExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 b/src/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 index dc6242d4e7a7..771ea940afe9 100644 --- a/src/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 +++ b/src/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 @@ -368,10 +368,20 @@ begin { UpdateExpanded = 'Az.DataBox.private\Update-AzDataBoxJob_UpdateExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) diff --git a/src/DataBox/DataBox.Autorest/generate-help.ps1 b/src/DataBox/DataBox.Autorest/generate-help.ps1 index e57fe1e2a6bd..eef325ac56d6 100644 --- a/src/DataBox/DataBox.Autorest/generate-help.ps1 +++ b/src/DataBox/DataBox.Autorest/generate-help.ps1 @@ -66,8 +66,8 @@ foreach($directory in $directories) $docsPath = Join-Path $docsFolder $directory.Name $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue $examplesPath = Join-Path $examplesFolder $directory.Name - - Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" } diff --git a/src/DataBox/DataBox.Autorest/generate-portal-ux.ps1 b/src/DataBox/DataBox.Autorest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..826757ef8b42 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/generate-portal-ux.ps1 @@ -0,0 +1,375 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# +# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$moduleName = 'Az.DataBox' +$rootModuleName = '' +if ($rootModuleName -eq "") +{ + $rootModuleName = $moduleName +} +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1") +$modulePath = $modulePsd1.FullName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll") +$instance = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName +$parameterSetsInfo = Get-Module -Name "$moduleName.private" + +$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet") + +function Test-FunctionSupported() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + If ($buildinfunctions.Contains($FunctionName)) { + return $false + } + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) { + return $false + } + If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) { + return $false + } + + $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName] + foreach ($parameterInfo in $parameterSetInfo.Parameters.Values) + { + $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories + $invalideCategory = @('Query', 'Body') + if ($invalideCategory -contains $category) + { + return $false + } + } + + $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*" + if ($customFiles.Length -ne 0) + { + return $false + } + + return $true +} + +function Get-MappedCmdletFromFunctionName() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + + return $cmdletName +} + +function Get-ParameterAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo, + [Parameter()] + [String] + $AttributeName + ) + return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $CmdletInfo, + [Parameter()] + [String] + $AttributeName + ) + + return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletDescription() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [String] + $CmdletName + ) + $helpInfo = Get-Help $CmdletName -Full + + $description = $helpInfo.Description.Text + if ($null -eq $description) + { + return "" + } + return $description +} + +# Test whether the parameter is from swagger http path +function Test-ParameterFromSwagger() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo + ) + $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories + $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute" + if ($null -ne $doNotExport) + { + return $false + } + + $valideCategory = @('Path') + if ($valideCategory -contains $category) + { + return $true + } + return $false +} + +function New-ExampleForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories + $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName + $name = $parameter.Name + $result += [ordered]@{ + name = "-$Name" + value = "[$category.$sourceName]" + } + } + + return $result +} + +function New-ParameterArrayInParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory + $parameterName = $parameter.Name + $parameterType = $parameter.ParameterType.ToString().Split('.')[1] + if ($parameter.SwitchParameter) + { + $parameterSignature = "-$parameterName" + } + else + { + $parameterSignature = "-$parameterName <$parameterType>" + } + if ($parameterName -eq "SubscriptionId") + { + $isMandatory = $false + } + if (-not $isMandatory) + { + $parameterSignature = "[$parameterSignature]" + } + $result += $parameterSignature + } + + return $result +} + +function New-MetadataForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute" + $httpPath = $httpAttribute.Path + $apiVersion = $httpAttribute.ApiVersion + $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value + $resourcePath = "/" + $httpPath.Split("$provider/")[1] + $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/" + $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name + $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description + [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + + return @{ + Path = $httpPath + Provider = $provider + ResourceType = $resourceType + ApiVersion = $apiVersion + CmdletName = $cmdletName + Description = $description + Example = $example + Signature = @{ + parameters = $signature + } + } +} + +function Merge-WithExistCmdletMetadata() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Collections.Specialized.OrderedDictionary] + $ExistedCmdletInfo, + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature + $ExistedCmdletInfo.examples += [ordered]@{ + description = $ParameterSetMetadata.Description + parameters = $ParameterSetMetadata.Example + } + + return $ExistedCmdletInfo +} + +function New-MetadataForCmdlet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $cmdletName = $ParameterSetMetadata.CmdletName + $description = Get-CmdletDescription $cmdletName + $result = [ordered]@{ + name = $cmdletName + description = $description + path = $ParameterSetMetadata.Path + help = [ordered]@{ + learnMore = [ordered]@{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower() + } + parameterSets = @() + } + examples = @() + } + $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata + return $result +} + +$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) } +$resourceTypes = @{} +foreach ($parameterSetName in $parameterSets) +{ + $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName] + $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo + $cmdletName = $parameterSetMetadata.CmdletName + if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName))) + { + continue + } + if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType)) + { + $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName } + if ($ExistedCmdletInfo) + { + $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo + } + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{ + resourceType = $parameterSetMetadata.ResourceType + apiVersion = $parameterSetMetadata.ApiVersion + learnMore = @{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower() + } + commands = @($cmdletInfo) + provider = $parameterSetMetadata.Provider + } + } +} + +$UXFolder = 'UX' +if (Test-Path $UXFolder) +{ + Remove-Item -Path $UXFolder -Recurse +} +$null = New-Item -ItemType Directory -Path $UXFolder + +foreach ($resourceType in $resourceTypes.Keys) +{ + $resourceTypeFileName = $resourceType -replace "/", "-" + if ($resourceTypeFileName -eq "") + { + continue + } + $resourceTypeInfo = $resourceTypes[$resourceType] + $provider = $resourceTypeInfo.provider + $providerFolder = "$UXFolder/$provider" + if (-not (Test-Path $providerFolder)) + { + $null = New-Item -ItemType Directory -Path $providerFolder + } + $resourceTypeInfo.Remove("provider") + $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json" +} \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/generated/Module.cs b/src/DataBox/DataBox.Autorest/generated/Module.cs index 4f4d3047bd5a..c7c8d5afeef0 100644 --- a/src/DataBox/DataBox.Autorest/generated/Module.cs +++ b/src/DataBox/DataBox.Autorest/generated/Module.cs @@ -17,6 +17,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using SanitizerDelegate = global::System.Action; + using GetTelemetryInfoDelegate = global::System.Func>; /// A class that contains the module-common code and data. public partial class Module @@ -51,6 +53,9 @@ public partial class Module /// The delegate to get the telemetry Id. public GetTelemetryIdDelegate GetTelemetryId { get; set; } + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } + /// Backing field for property. private static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module _instance; @@ -72,6 +77,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.DataBox"; + /// The delegate to call in WriteObject to sanitize the output object. + public SanitizerDelegate SanitizeOutput { get; set; } + /// The delegate for creating a telemetry. public TelemetryDelegate Telemetry { get; set; } diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs index f74d7820e37f..0ec0d466bc70 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"This method gets the unencrypted secrets related to the job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials", ApiVersion = "2022-12-01")] public partial class GetAzDataBoxJobCredential_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -189,7 +190,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -341,6 +359,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs index a0240c351aa9..dc8a9b56e002 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Gets information about the specified job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] public partial class GetAzDataBoxJob_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -206,7 +207,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -355,6 +373,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs index 05ea0d705aeb..7b20af37e297 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Lists all the jobs available under the subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", ApiVersion = "2022-12-01")] public partial class GetAzDataBoxJob_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -180,7 +181,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -329,6 +347,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs index eac055127228..d3c88a28c8f5 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Lists all the jobs available under the given resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs", ApiVersion = "2022-12-01")] public partial class GetAzDataBoxJob_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -194,7 +195,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -343,6 +361,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs index b36072248f2f..b1c1e6f37970 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"This method gets all the operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/providers/Microsoft.DataBox/operations", ApiVersion = "2022-12-01")] public partial class GetAzDataBoxOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -147,7 +148,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -293,6 +311,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs index 0d69569fb9c7..fd72d2b927e2 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -366,7 +367,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets.NewAzDataBoxJob_Create /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -545,6 +563,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs index 22b3908cbcae..5de48faabcc9 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Deletes a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] public partial class RemoveAzDataBoxJob_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -241,7 +242,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets.RemoveAzDataBoxJob_Del /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -420,6 +438,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs index 5947980a839f..676e644a462f 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"CancelJob.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel", ApiVersion = "2022-12-01")] public partial class StopAzDataBoxJob_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -209,7 +210,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -358,6 +376,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs b/src/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs index 419bbc9a44e3..a8fff060f742 100644 --- a/src/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs +++ b/src/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Updates the properties of an existing job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -479,7 +480,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets.UpdateAzDataBoxJob_Upd /// Performs clean-up after the command execution protected override void EndProcessing() { - + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -658,6 +676,21 @@ public UpdateAzDataBoxJob_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 00f826cdb234..8fdcecfb2ca0 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -33,6 +33,9 @@ public class ExportHelpMarkdown : PSCmdlet [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } + [Parameter()] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -41,7 +44,7 @@ protected override void ProcessRecord() var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); - WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); } catch (Exception ee) { diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 945f2302a8f9..747e4586e1a0 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -52,6 +52,9 @@ public class ExportProxyCmdlet : PSCmdlet [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] public SwitchParameter ExcludeDocs { get; set; } + [Parameter(ParameterSetName = "Docs")] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -163,7 +166,7 @@ protected override void ProcessRecord() var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); } } } diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index 6aa1e47a4b6f..1791b9c6817a 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell { internal static class MarkdownRenderer { - public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) { Directory.CreateDirectory(docsFolder); var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); @@ -69,18 +69,26 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod } sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); - sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); - foreach (var alias in markdownInfo.Aliases) + if (markdownInfo.Aliases.Any()) { - sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); } - if (markdownInfo.ComplexInterfaceInfos.Any()) + foreach (var alias in markdownInfo.Aliases) { - sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); } - foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + + if (AddComplexInterfaceInfo) { - sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + } sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index acb08843b19c..7c9fe19524c1 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -191,8 +191,15 @@ public BeginOutput(VariantGroup variantGroup) : base(variantGroup) public string GetProcessCustomAttributesAtRuntime() { - return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } + private string GetTelemetry() { if (!VariantGroup.IsInternal && IsAzure) @@ -262,9 +269,26 @@ private string GetDefaultValuesStatements() var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); var parameterName = defaultInfo.ParameterGroup.ParameterName; sb.AppendLine(); - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.Append($"{Indent}{Indent}}}"); + //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to + //override default value set in required readme + if ("SubscriptionId".Equals(parameterName)) + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}"); + sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); + sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.AppendLine($"{Indent}{Indent}{Indent}}}"); + sb.Append($"{Indent}{Indent}}}"); + } + else + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } } return sb.ToString(); } diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 8748b9a9ec51..4d226cfd0d12 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -48,6 +48,13 @@ public ProfileAttribute(params string[] profiles) } } + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class CategoryAttribute : Attribute { diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttribute.cs b/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttribute.cs index 5c38a397503a..37ed5a3af1f0 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttribute.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -185,6 +168,11 @@ public class PreviewMessageAttribute : Attribute { public string _message; + public DateTime EstimatedGaDate { get; } + + public bool IsEstimatedGaDateSet { get; } = false; + + public PreviewMessageAttribute() { this._message = Resources.PreviewCmdletMessage; @@ -192,12 +180,26 @@ public PreviewMessageAttribute() public PreviewMessageAttribute(string message) { - this._message = message; + this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; } - public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet) + public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) { - psCmdlet.WriteWarning(this._message); + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) + { + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) @@ -219,20 +221,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -298,20 +294,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttributeHelper.cs index a9150f692418..3b2d049e9b72 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttributeHelper.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/MessageAttributeHelper.cs @@ -35,7 +35,7 @@ public class MessageAttributeHelper * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, * We only process the Parameter beaking change attributes attached only params listed in this list (if present) * */ - public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) { bool supressWarningOrError = false; @@ -57,36 +57,49 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv { psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); } + + ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); + + } + + private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); - Action appendBreakingChangeInfo = (string s) => sb.Append(s); + Action appendAttributeMessage = (string s) => sb.Append(s); if (attributes != null && attributes.Count > 0) { - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); foreach (GenericBreakingChangeAttribute attribute in attributes) { - attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); psCmdlet.WriteWarning(sb.ToString()); } + } + + public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); if (previewAttributes != null && previewAttributes.Count > 0) { foreach (PreviewMessageAttribute attribute in previewAttributes) { - attribute.PrintCustomAttributeInfo(psCmdlet); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } + psCmdlet.WriteWarning(sb.ToString()); } } - /** * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) * And returns all the deprecation attributes attached to it @@ -128,6 +141,12 @@ private static IEnumerable GetAllBreakingChangeA } return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); } + + public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; + } + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) { List attributeList = new List(); diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.Designer.cs index 5b47a7ae4cb6..9012de0fa671 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -3122,7 +3135,16 @@ public static string PortalInstructionsGit } /// - /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription. + /// Looks up a localized string similar to The estimated generally available date is '{0}'.. + /// + public static string PreviewCmdletETAMessage { + get { + return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. /// public static string PreviewCmdletMessage { @@ -5630,4 +5652,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.resx b/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.resx index 598cd53e958a..a08a2e50172b 100644 --- a/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.resx +++ b/src/DataBox/DataBox.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1736,6 +1736,12 @@ The type of the parameter is changing from '{0}' to '{1}'. Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. - This cmdlet is in preview. The functionality may not be available in the selected subscription. + This cmdlet is in preview. Its behavior is subject to change based on customer feedback. + + + The estimated generally available date is '{0}'. + + + - The change is expected to take effect from Az version : '{0}' \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/help/Az.DataBox.md b/src/DataBox/DataBox.Autorest/help/Az.DataBox.md new file mode 100644 index 000000000000..2da7a9c1f2bd --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Az.DataBox.md @@ -0,0 +1,62 @@ +--- +Module Name: Az.DataBox +Module Guid: 9602a6b3-8b77-4f08-a6ed-edefff13e149 +Download Help Link: https://learn.microsoft.com/powershell/module/az.databox +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.DataBox Module +## Description +Microsoft Azure PowerShell: DataBox cmdlets + +## Az.DataBox Cmdlets +### [Get-AzDataBoxJob](Get-AzDataBoxJob.md) +Gets information about the specified job. + +### [Get-AzDataBoxJobCredential](Get-AzDataBoxJobCredential.md) +This method gets the unencrypted secrets related to the job. + +### [New-AzDataBoxContactDetailsObject](New-AzDataBoxContactDetailsObject.md) +Create an in-memory object for ContactDetails. + +### [New-AzDataBoxCustomerDiskJobDetailsObject](New-AzDataBoxCustomerDiskJobDetailsObject.md) +Create an in-memory object for DataBoxCustomerDiskJobDetails. + +### [New-AzDataBoxDiskJobDetailsObject](New-AzDataBoxDiskJobDetailsObject.md) +Create an in-memory object for DataBoxDiskJobDetails. + +### [New-AzDataBoxHeavyJobDetailsObject](New-AzDataBoxHeavyJobDetailsObject.md) +Create an in-memory object for DataBoxHeavyJobDetails. + +### [New-AzDataBoxJob](New-AzDataBoxJob.md) +Creates a new job with the specified parameters. +Existing job cannot be updated with this API and should instead be updated with the Update job API. + +### [New-AzDataBoxJobDetailsObject](New-AzDataBoxJobDetailsObject.md) +Create an in-memory object for DataBoxJobDetails. + +### [New-AzDataBoxKeyEncryptionKeyObject](New-AzDataBoxKeyEncryptionKeyObject.md) +Create an in-memory object for KeyEncryptionKey. + +### [New-AzDataBoxManagedDiskDetailsObject](New-AzDataBoxManagedDiskDetailsObject.md) +Create an in-memory object for ManagedDiskDetails. + +### [New-AzDataBoxShippingAddressObject](New-AzDataBoxShippingAddressObject.md) +Create an in-memory object for ShippingAddress. + +### [New-AzDataBoxStorageAccountDetailsObject](New-AzDataBoxStorageAccountDetailsObject.md) +Create an in-memory object for StorageAccountDetails. + +### [New-AzDataBoxTransferConfigurationObject](New-AzDataBoxTransferConfigurationObject.md) +Create an in-memory object for TransferConfiguration. + +### [Remove-AzDataBoxJob](Remove-AzDataBoxJob.md) +Deletes a job. + +### [Stop-AzDataBoxJob](Stop-AzDataBoxJob.md) +CancelJob. + +### [Update-AzDataBoxJob](Update-AzDataBoxJob.md) +Updates the properties of an existing job. + diff --git a/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJob.md b/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJob.md new file mode 100644 index 000000000000..67e92e9264b3 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJob.md @@ -0,0 +1,186 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjob +schema: 2.0.0 +--- + +# Get-AzDataBoxJob + +## SYNOPSIS +Gets information about the specified job. + +## SYNTAX + +### List (Default) +``` +Get-AzDataBoxJob [-SubscriptionId ] [-SkipToken ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] [-Expand ] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzDataBoxJob -ResourceGroupName [-SubscriptionId ] [-SkipToken ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets information about the specified job. + +## EXAMPLES + +### Example 1: Gets a particular job +```powershell +Get-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" -SubscriptionId "SubscriptionId" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +Powershell10 WestUS DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Gets a particular job + +### Example 2: List all job under a subscription +```powershell +Get-AzDataBoxJob -SubscriptionId "SubscriptionId" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +brtestdbd brazilsouth DeviceOrdered ImportToAzure DataBoxDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails +testorder uksouth Cancelled ImportToAzure DataBoxDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails +``` + +List all job under a subscription + +### Example 3: List all job under a resourcegroup +```powershell +Get-AzDataBoxJob -ResourceGroupName "resourceGroupName" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +abcbnkndnkndn westus DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +abcbnkndnkndn-Clone westus DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +abcOrder westus Cancelled ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +List all job under a resource group + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expand +$expand is supported on details parameter for job, which provides details on the job stages. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: JobName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkipToken +$skipToken is supported on Get list of jobs, which provides the next page in the list of jobs. + +```yaml +Type: System.String +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJobCredential.md b/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJobCredential.md new file mode 100644 index 000000000000..18365a2a88d0 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Get-AzDataBoxJobCredential.md @@ -0,0 +1,170 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjobcredential +schema: 2.0.0 +--- + +# Get-AzDataBoxJobCredential + +## SYNOPSIS +This method gets the unencrypted secrets related to the job. + +## SYNTAX + +``` +Get-AzDataBoxJobCredential -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This method gets the unencrypted secrets related to the job. + +## EXAMPLES + +### Example 1: Get databoxHeavy job credential +```powershell +Get-AzDataBoxJobCredential -Name "DtbxPowershell" -ResourceGroupName "resourceGroupName" + +$obj = Get-AzDataBoxJobCredential -Name TJy-637522091284252285 -ResourceGroupName bvttoolrg12-Wednesday +$obj | Format-List +$obj.JobSecret | Format-List +$cabinetJobSecret = $obj.JobSecret.CabinetPodSecret | Format-List +``` + +```output +AdditionalInfo : +Code : +DcAccessSecurityCodeForwardDcAccessCode : +DcAccessSecurityCodeReverseDcAccessCode : +Detail : +JobName : DtbxPowershell +JobSecret : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxHeavyJobSecrets +JobSecretJobSecretsType : DataBoxHeavy +Message : +Target : + + +AdditionalInfo : +CabinetPodSecret : {, } +Code : +DcAccessSecurityCode : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DcAccessSecurityCode +DcAccessSecurityCodeForwardDcAccessCode : +DcAccessSecurityCodeReverseDcAccessCode : +Detail : +Error : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.CloudError +Message : +Target : +Type : DataBoxHeavy +``` + +Get databoxHeavy job credential + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxContactDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxContactDetailsObject.md new file mode 100644 index 000000000000..16dfccf323a9 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxContactDetailsObject.md @@ -0,0 +1,144 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxContactDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxContactDetailsObject + +## SYNOPSIS +Create an in-memory object for ContactDetails. + +## SYNTAX + +``` +New-AzDataBoxContactDetailsObject -ContactName -EmailList -Phone + [-Mobile ] [-NotificationPreference ] [-PhoneExtension ] + [] +``` + +## DESCRIPTION +Create an in-memory object for ContactDetails. + +## EXAMPLES + +### Example 1: Create a in-memory object for ContactDetails +```powershell +New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +``` + +```output +ContactName EmailList Mobile Phone PhoneExtension +----------- --------- ------ ----- -------------- +random {emailId} 1234567891 +``` + +Create a in-memory object for ContactDetails + +## PARAMETERS + +### -ContactName +Contact name of the person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EmailList +List of Email-ids to be notified about job progress. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mobile +Mobile number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationPreference +Notification preference for a job stage. +To construct, see NOTES section for NOTIFICATIONPREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Phone +Phone number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PhoneExtension +Phone extension number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxCustomerDiskJobDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxCustomerDiskJobDetailsObject.md new file mode 100644 index 000000000000..8ccc8aeafb2c --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxCustomerDiskJobDetailsObject.md @@ -0,0 +1,246 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxCustomerDiskJobDetailsObject + +## SYNOPSIS +Create an in-memory object for DataBoxCustomerDiskJobDetails. + +## SYNTAX + +``` +New-AzDataBoxCustomerDiskJobDetailsObject -ContactDetail -Type + [-DataExportDetail ] [-DataImportDetail ] + [-ExpectedDataSizeInTeraByte ] + [-ExportDiskDetailsCollection ] + [-ImportDiskDetailsCollection ] + [-KeyEncryptionKey ] [-Preference ] + [-ReturnToCustomerPackageDetailCarrierAccountNumber ] + [-ReverseShippingDetail ] [-ShippingAddress ] [] +``` + +## DESCRIPTION +Create an in-memory object for DataBoxCustomerDiskJobDetails. + +## EXAMPLES + +### Example 1: DataBoxCustomerDisk details in-memory object +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Storage/storageAccounts/YourStorageAccount" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "XXXX XXXX" -EmailList @("emailId") -Phone "0000000000" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "XXXX XXXX" -StateOrProvince "XX" -Country "XX" -City "XXXX XXXX" -PostalCode "00000" -AddressType "Commercial" +$importDiskDetailsCollection = @{"XXXXXX"= @{ManifestFile = "xyz.txt"; ManifestHash = "xxxx"; BitLockerKey = "xxx"}} + +New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ImportDiskDetailsCollection $importDiskDetailsCollection -ReturnToCustomerPackageDetailCarrierAccountNumber "00000" +``` + +DataBoxCustomerDisk details in-memory object + +## PARAMETERS + +### -ContactDetail +Contact details for notification and shipping. +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataExportDetail +Details of the data to be exported from azure. +To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataImportDetail +Details of the data to be imported into azure. +To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpectedDataSizeInTeraByte +The expected size of the data, which needs to be transferred in this job, in terabytes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExportDiskDetailsCollection +Contains the map of disk serial number to the disk details for export jobs. +To construct, see NOTES section for EXPORTDISKDETAILSCOLLECTION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ImportDiskDetailsCollection +Contains the map of disk serial number to the disk details for import jobs. +To construct, see NOTES section for IMPORTDISKDETAILSCOLLECTION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyEncryptionKey +Details about which key encryption type is being used. +To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Preferences for the order. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnToCustomerPackageDetailCarrierAccountNumber +Carrier Account Number of customer for customer disk. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseShippingDetail +Optional Reverse Shipping details for order. +To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping address of the customer. +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Indicates the type of job details. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxDiskJobDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxDiskJobDetailsObject.md new file mode 100644 index 000000000000..ac8fbb170756 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxDiskJobDetailsObject.md @@ -0,0 +1,235 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxDiskJobDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxDiskJobDetailsObject + +## SYNOPSIS +Create an in-memory object for DataBoxDiskJobDetails. + +## SYNTAX + +``` +New-AzDataBoxDiskJobDetailsObject -ContactDetail -Type + [-DataExportDetail ] [-DataImportDetail ] + [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] [-Passkey ] + [-Preference ] [-PreferredDisk ] + [-ReverseShippingDetail ] [-ShippingAddress ] [] +``` + +## DESCRIPTION +Create an in-memory object for DataBoxDiskJobDetails. + +## EXAMPLES + +### Example 1: DataBoxDisk details in-memory object +```powershell +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" + +New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 +``` + +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type Passkey +------ -------------------- -------------------------- -------------------------- ---- ------- + 18 DataBoxDisk randm@423jarABC +``` + +DataBoxDisk details in-memory object + +## PARAMETERS + +### -ContactDetail +Contact details for notification and shipping. +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataExportDetail +Details of the data to be exported from azure. +To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataImportDetail +Details of the data to be imported into azure. +To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpectedDataSizeInTeraByte +The expected size of the data, which needs to be transferred in this job, in terabytes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyEncryptionKey +Details about which key encryption type is being used. +To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Passkey +User entered passkey for DataBox Disk job. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Preferences for the order. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PreferredDisk +User preference on what size disks are needed for the job. +The map is from the disk size in TB to the count. +Eg. +{2,5} means 5 disks of 2 TB size. +Key is string but will be checked against an int. +To construct, see NOTES section for PREFERREDDISK properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseShippingDetail +Optional Reverse Shipping details for order. +To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping address of the customer. +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Indicates the type of job details. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxHeavyJobDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxHeavyJobDetailsObject.md new file mode 100644 index 000000000000..62656257eb81 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxHeavyJobDetailsObject.md @@ -0,0 +1,221 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxHeavyJobDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxHeavyJobDetailsObject + +## SYNOPSIS +Create an in-memory object for DataBoxHeavyJobDetails. + +## SYNTAX + +``` +New-AzDataBoxHeavyJobDetailsObject -ContactDetail -Type + [-DataExportDetail ] [-DataImportDetail ] + [-DevicePassword ] [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] + [-Preference ] [-ReverseShippingDetail ] + [-ShippingAddress ] [] +``` + +## DESCRIPTION +Create an in-memory object for DataBoxHeavyJobDetails. + +## EXAMPLES + +### Example 1: Create a in-memory object for DataBoxHeavyJobDetails +```powershell +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" + +New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 +``` + +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type Passkey +------ -------------------- -------------------------- -------------------------- ---- ------- + 18 DataBoxDisk randm@423jarABC +``` + +Create a in-memory object for DataBoxHeavyJobDetails + +## PARAMETERS + +### -ContactDetail +Contact details for notification and shipping. +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataExportDetail +Details of the data to be exported from azure. +To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataImportDetail +Details of the data to be imported into azure. +To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevicePassword +Set Device password for unlocking Databox Heavy. +Should not be passed for TransferType:ExportFromAzure jobs. +If this is not passed, the service will generate password itself. +This will not be returned in Get Call. +Password Requirements : Password must be minimum of 12 and maximum of 64 characters. +Password must have at least one uppercase alphabet, one number and one special character. +Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpectedDataSizeInTeraByte +The expected size of the data, which needs to be transferred in this job, in terabytes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyEncryptionKey +Details about which key encryption type is being used. +To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Preferences for the order. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseShippingDetail +Optional Reverse Shipping details for order. +To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping address of the customer. +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Indicates the type of job details. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJob.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJob.md new file mode 100644 index 000000000000..60a4b39485d2 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJob.md @@ -0,0 +1,567 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/new-azdataboxjob +schema: 2.0.0 +--- + +# New-AzDataBoxJob + +## SYNOPSIS +Creates a new job with the specified parameters. +Existing job cannot be updated with this API and should instead be updated with the Update job API. + +## SYNTAX + +``` +New-AzDataBoxJob -Name -ResourceGroupName -Location -SkuName + -TransferType [-SubscriptionId ] [-DeliveryInfoScheduledDateTime ] + [-DeliveryType ] [-Detail ] [-IdentityType ] [-SkuDisplayName ] + [-SkuFamily ] [-Tag ] [-UserAssignedIdentity ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new job with the specified parameters. +Existing job cannot be updated with this API and should instead be updated with the Update job API. + +## EXAMPLES + +### Example 1: Create a databox import job +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +$DebugPreference = "Continue" +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } +$resource = New-AzDataBoxJob -Name "ImportTest" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" +$resource +$resource.Detail +$resource.Detail.ShippingAddress +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +ImportTest WestUS DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails + + +Action : +ChainOfCustodySasKey : +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ContactDetails +CopyLogDetail : +CopyProgress : +DataExportDetail : +DataImportDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataImportDetails} +DeliveryPackage : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails +DevicePassword : +ExpectedDataSizeInTeraByte : 0 +JobStage : +KeyEncryptionKey : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.KeyEncryptionKey +LastMitigationActionOnJob : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.LastMitigationActionOnJob +Preference : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.Preferences +ReturnPackage : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails +ReverseShipmentLabelSasKey : +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ShippingAddress +Type : DataBox + + +AddressType City CompanyName Country PostalCode StateOrProvince StreetAddress1 StreetAddress2 StreetAddress3 ZipExtendedCode +----------- ---- ----------- ------- ---------- --------------- -------------- -------------- -------------- --------------- +Commercial San Francisco US 94107 CA 101 TOWNSEND ST +``` + +You can expand and visualize other object in similar way how details and shipping address expanded. + +### Example 2: Creates a databox export job +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$transferConfigurationType = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataExportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"; "TransferConfiguration"= $transferConfigurationType} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +$resource = New-AzDataBoxJob -Name "ExportTest" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ExportFromAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +ExportTest WestUS DeviceOrdered ExportFromAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Creates a databox export job. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 3: Creates a databox import job with managed disk account +```powershell +$managedDiskAccount=New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$managedDiskAccount; AccountDetailDataAccountType = "ManagedDisk"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +New-AzDataBoxJob -Name "PwshManagedDisk" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +PwshManagedDisk WestUS DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Creates a databox import job with managed disk account. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 4: Creates a databox import job with user assigned identity +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$keyEncryptionDetails = New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -KeyEncryptionKey $keyEncryptionDetails +New-AzDataBoxJob -Name "PowershellMSI" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" -IdentityType "UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +PowershellMSI WestUS DeviceOrdered ImportToAzure DataBox UserAssigned NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Creates a databox import job with user assigned identity. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 5: Creates a databox job with your own key +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randmPass@12345" +$resource = New-AzDataBoxJob -Name "PowershellBYOK" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +PowershellBYOK WestUS DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Creates a databox job with your own key. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 6: Creates a databoxHeavy job with your own key +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 +$resource = New-AzDataBoxJob -Name "DbxHeavy" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBoxHeavy" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +DbxHeavy WestUS DeviceOrdered ImportToAzure DataBoxHeavy None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxHeavyJobDetails +``` + +Creates a databoxHeavy job with your own key. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 7: Creates a databoxDisk job with your own Passkey +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 +New-AzDataBoxJob -Name "pwshDisk" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBoxDisk" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +pwshDisk WestUS DeviceOrdered ImportToAzure DataBoxDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails +``` + +Creates a databoxDisky job with your own Passkey. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 8: Creates a databox job with double encryption enabled +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Preference @{EncryptionPreferenceDoubleEncryption="Enabled"} +New-AzDataBoxJob -Name "pwshDoubEncy" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +pwshDoubEncy WestUS DeviceOrdered ImportToAzure DataBox None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails +``` + +Creates a databox job with double encryption enabled. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 9: Creates a Data Box Customer Disk import job +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Storage/storageAccounts/YourStorageAccount" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "XXXX XXXX" -EmailList @("emailId") -Phone "0000000000" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "XXXX XXXX" -StateOrProvince "XX" -Country "XX" -City "XXXX XXXX" -PostalCode "00000" -AddressType "Commercial" +$importDiskDetailsCollection = @{"XXXXXX"= @{ManifestFile = "xyz.txt"; ManifestHash = "xxxx"; BitLockerKey = "xxx"}} +$customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ImportDiskDetailsCollection $importDiskDetailsCollection -ReturnToCustomerPackageDetailCarrierAccountNumber "00000" + +New-AzDataBoxJob -Name "testJobName1" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ImportToAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk" +``` + +```output + +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +testJobName1 westus AwaitingShipmentDetails ImportToAzure DataBoxCustomerDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails + +``` + +Creates a databox customer disk job to import data to Azure. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 10: Creates a Data Box Customer Disk export job +```powershell +$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Storage/storageAccounts/YourStorageAccount" +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "XXXX XXXX" -EmailList @("emailId") -Phone "0000000000" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "XXXX XXXX" -StateOrProvince "XX" -Country "XX" -City "XXXX XXXX" -PostalCode "00000" -AddressType "Commercial" +$transferConfiguration = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="False"} +$customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataExportDetail @(@{ AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"; "TransferConfiguration"=$transferConfiguration }) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ReturnToCustomerPackageDetailCarrierAccountNumber "00000" + +New-AzDataBoxJob -Name "testJobName2" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ExportFromAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk" +``` + +```output + +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +testJobName2 westus AwaitingShipmentDetails ExportFromAzure DataBoxCustomerDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails + +``` + +Creates a databox customer disk job to export data from Azure. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeliveryInfoScheduledDateTime +Scheduled date time. + +```yaml +Type: System.DateTime +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeliveryType +Delivery type of Job. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Detail +Details of a job run. +This field will only be sent for expand details filter. +To construct, see NOTES section for DETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +Identity type + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The location of the resource. +This will be one of the supported and registered Azure Regions (e.g. +West US, East US, Southeast Asia, etc.). +The region of a resource cannot be changed once it is created, but if an identical region is specified on update the request will succeed. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: JobName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuDisplayName +The display name of the sku. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuFamily +The sku family. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +The sku name. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The list of key value pairs that describe the resource. +These tags can be used in viewing and grouping this resource (across resource groups). + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TransferType +Type of the data transfer. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserAssignedIdentity +User Assigned Identities + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJobDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJobDetailsObject.md new file mode 100644 index 000000000000..e70372986d8f --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxJobDetailsObject.md @@ -0,0 +1,236 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxJobDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxJobDetailsObject + +## SYNOPSIS +Create an in-memory object for DataBoxJobDetails. + +## SYNTAX + +``` +New-AzDataBoxJobDetailsObject -ContactDetail -Type + [-DataExportDetail ] [-DataImportDetail ] + [-DevicePassword ] [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] + [-Preference ] [-ReverseShippingDetail ] + [-ShippingAddress ] [] +``` + +## DESCRIPTION +Create an in-memory object for DataBoxJobDetails. + +## EXAMPLES + +### Example 1: Creates a databox job detail in memory object +```powershell +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" + +New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +``` + +```output +Action : +ChainOfCustodySasKey : +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ContactDetails +CopyLogDetail : +CopyProgress : +DataExportDetail : +DataImportDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataImportDetails} +DeliveryPackage : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails +DevicePassword : +ExpectedDataSizeInTeraByte : 0 +JobStage : +KeyEncryptionKey : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.KeyEncryptionKey +LastMitigationActionOnJob : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.LastMitigationActionOnJob +Preference : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.Preferences +ReturnPackage : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails +ReverseShipmentLabelSasKey : +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ShippingAddress +Type : DataBox +``` + +Create a in-memory object for DataBoxJobDetails + +## PARAMETERS + +### -ContactDetail +Contact details for notification and shipping. +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataExportDetail +Details of the data to be exported from azure. +To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DataImportDetail +Details of the data to be imported into azure. +To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DevicePassword +Set Device password for unlocking Databox. +Should not be passed for TransferType:ExportFromAzure jobs. +If this is not passed, the service will generate password itself. +This will not be returned in Get Call. +Password Requirements : Password must be minimum of 12 and maximum of 64 characters. +Password must have at least one uppercase alphabet, one number and one special character. +Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExpectedDataSizeInTeraByte +The expected size of the data, which needs to be transferred in this job, in terabytes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyEncryptionKey +Details about which key encryption type is being used. +To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Preferences for the order. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseShippingDetail +Optional Reverse Shipping details for order. +To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping address of the customer. +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Indicates the type of job details. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxKeyEncryptionKeyObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxKeyEncryptionKeyObject.md new file mode 100644 index 000000000000..773f607a85b5 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxKeyEncryptionKeyObject.md @@ -0,0 +1,115 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxKeyEncryptionKeyObject +schema: 2.0.0 +--- + +# New-AzDataBoxKeyEncryptionKeyObject + +## SYNOPSIS +Create an in-memory object for KeyEncryptionKey. + +## SYNTAX + +``` +New-AzDataBoxKeyEncryptionKeyObject -KekType [-IdentityProperty ] + [-KekUrl ] [-KekVaultResourceId ] [] +``` + +## DESCRIPTION +Create an in-memory object for KeyEncryptionKey. + +## EXAMPLES + +### Example 1: Create a in-memory object for KeyEncryptionKey +```powershell +New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" +``` + +```output +KekType KekUrl KekVaultResourceId +------- ------ ------------------ +CustomerManaged keyIdentifier /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName +``` + +Create a in-memory object for KeyEncryptionKey + +## PARAMETERS + +### -IdentityProperty +Managed identity properties used for key encryption. +To construct, see NOTES section for IDENTITYPROPERTY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KekType +Type of encryption key used for key encryption. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KekUrl +Key encryption key. +It is required in case of Customer managed KekType. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KekVaultResourceId +Kek vault resource id. +It is required in case of Customer managed KekType. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxManagedDiskDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxManagedDiskDetailsObject.md new file mode 100644 index 000000000000..d072ee5444aa --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxManagedDiskDetailsObject.md @@ -0,0 +1,118 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxManagedDiskDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxManagedDiskDetailsObject + +## SYNOPSIS +Create an in-memory object for ManagedDiskDetails. + +## SYNTAX + +``` +New-AzDataBoxManagedDiskDetailsObject -DataAccountType -ResourceGroupId + -StagingStorageAccountId [-SharePassword ] [] +``` + +## DESCRIPTION +Create an in-memory object for ManagedDiskDetails. + +## EXAMPLES + +### Example 1: ManagedDisk object +```powershell +New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" +``` + +```output +DataAccountType SharePassword ResourceGroupId StagingStorageAccountId +--------------- ------------- --------------- ----------------------- +ManagedDisk /subscriptions/SubscriptionId/resourceGroups/resourceGroupName /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName +``` + +Creates a in-memory managed disk object + +## PARAMETERS + +### -DataAccountType +Account Type of the data to be transferred. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupId +Resource Group Id of the compute disks. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SharePassword +Password for all the shares to be created on the device. +Should not be passed for TransferType:ExportFromAzure jobs. +If this is not passed, the service will generate password itself. +This will not be returned in Get Call. +Password Requirements : Password must be minimum of 12 and maximum of 64 characters. +Password must have at least one uppercase alphabet, one number and one special character. +Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StagingStorageAccountId +Resource Id of the storage account that can be used to copy the vhd for staging. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxShippingAddressObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxShippingAddressObject.md new file mode 100644 index 000000000000..e3dcf1d65225 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxShippingAddressObject.md @@ -0,0 +1,234 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxShippingAddressObject +schema: 2.0.0 +--- + +# New-AzDataBoxShippingAddressObject + +## SYNOPSIS +Create an in-memory object for ShippingAddress. + +## SYNTAX + +``` +New-AzDataBoxShippingAddressObject -Country -StreetAddress1 [-AddressType ] + [-City ] [-CompanyName ] [-PostalCode ] [-SkipAddressValidation ] + [-StateOrProvince ] [-StreetAddress2 ] [-StreetAddress3 ] + [-TaxIdentificationNumber ] [-ZipExtendedCode ] [] +``` + +## DESCRIPTION +Create an in-memory object for ShippingAddress. + +## EXAMPLES + +### Example 1: Shipping Address object +```powershell +New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +``` + +```output +AddressType City CompanyName Country PostalCode StateOrProvince StreetAddress1 StreetAddress2 StreetAddress3 ZipExtendedCode +----------- ---- ----------- ------- ---------- --------------- -------------- -------------- -------------- --------------- +Commercial San Francisco US 94107 CA 101 TOWNSEND ST +``` + +Creates a in-memory shipping address object + +## PARAMETERS + +### -AddressType +Type of address. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -City +Name of the City. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CompanyName +Name of the company. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Country +Name of the Country. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PostalCode +Postal code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkipAddressValidation +Flag to indicate if customer has chosen to skip default address validation. + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StateOrProvince +Name of the State or Province. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress1 +Street Address line 1. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress2 +Street Address line 2. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress3 +Street Address line 3. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TaxIdentificationNumber +Tax Identification Number. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ZipExtendedCode +Extended Zip Code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxStorageAccountDetailsObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxStorageAccountDetailsObject.md new file mode 100644 index 000000000000..7f0eee9a3bf9 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxStorageAccountDetailsObject.md @@ -0,0 +1,103 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxStorageAccountDetailsObject +schema: 2.0.0 +--- + +# New-AzDataBoxStorageAccountDetailsObject + +## SYNOPSIS +Create an in-memory object for StorageAccountDetails. + +## SYNTAX + +``` +New-AzDataBoxStorageAccountDetailsObject -DataAccountType -StorageAccountId + [-SharePassword ] [] +``` + +## DESCRIPTION +Create an in-memory object for StorageAccountDetails. + +## EXAMPLES + +### Example 1: Storage account in-memory object +```powershell +New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" +``` + +```output +DataAccountType SharePassword StorageAccountId +--------------- ------------- ---------------- +StorageAccount /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName +``` + +Storage account in-memory object + +## PARAMETERS + +### -DataAccountType +Account Type of the data to be transferred. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SharePassword +Password for all the shares to be created on the device. +Should not be passed for TransferType:ExportFromAzure jobs. +If this is not passed, the service will generate password itself. +This will not be returned in Get Call. +Password Requirements : Password must be minimum of 12 and maximum of 64 characters. +Password must have at least one uppercase alphabet, one number and one special character. +Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountId +Storage Account Resource Id. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/New-AzDataBoxTransferConfigurationObject.md b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxTransferConfigurationObject.md new file mode 100644 index 000000000000..31990dcab0e3 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/New-AzDataBoxTransferConfigurationObject.md @@ -0,0 +1,96 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxTransferConfigurationObject +schema: 2.0.0 +--- + +# New-AzDataBoxTransferConfigurationObject + +## SYNOPSIS +Create an in-memory object for TransferConfiguration. + +## SYNTAX + +``` +New-AzDataBoxTransferConfigurationObject -Type + [-TransferAllDetail ] + [-TransferFilterDetail ] [] +``` + +## DESCRIPTION +Create an in-memory object for TransferConfiguration. + +## EXAMPLES + +### Example 1: In-memory object for export job transfer configuration +```powershell +New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} +``` + +Create a in-memory object for export jobs TransferConfiguration + +## PARAMETERS + +### -TransferAllDetail +Map of filter type and the details to transfer all data. +This field is required only if the TransferConfigurationType is given as TransferAll. +To construct, see NOTES section for TRANSFERALLDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TransferFilterDetail +Map of filter type and the details to filter. +This field is required only if the TransferConfigurationType is given as TransferUsingFilter. +To construct, see NOTES section for TRANSFERFILTERDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Type of the configuration for transfer. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/README.md b/src/DataBox/DataBox.Autorest/help/README.md new file mode 100644 index 000000000000..d3266810d5ba --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.DataBox` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.DataBox` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/help/Remove-AzDataBoxJob.md b/src/DataBox/DataBox.Autorest/help/Remove-AzDataBoxJob.md new file mode 100644 index 000000000000..5ff03e0108b4 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Remove-AzDataBoxJob.md @@ -0,0 +1,184 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/remove-azdataboxjob +schema: 2.0.0 +--- + +# Remove-AzDataBoxJob + +## SYNOPSIS +Deletes a job. + +## SYNTAX + +``` +Remove-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a job. + +## EXAMPLES + +### Example 1: Deletes a job +```powershell +Remove-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" +``` + +Deletes a job + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: JobName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/Stop-AzDataBoxJob.md b/src/DataBox/DataBox.Autorest/help/Stop-AzDataBoxJob.md new file mode 100644 index 000000000000..f98d2c5f652b --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Stop-AzDataBoxJob.md @@ -0,0 +1,176 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/stop-azdataboxjob +schema: 2.0.0 +--- + +# Stop-AzDataBoxJob + +## SYNOPSIS +CancelJob. + +## SYNTAX + +``` +Stop-AzDataBoxJob -Name -ResourceGroupName -Reason [-SubscriptionId ] + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +CancelJob. + +## EXAMPLES + +### Example 1: Cancel a Job +```powershell +Stop-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" -Reason "Powershell demo job" +Get-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" +``` + +```output +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +Powershell10 WestUS Cancelled ImportToAzure DataBox UserAssigned NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Cancel a job + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: JobName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Reason +Reason for cancellation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/help/Update-AzDataBoxJob.md b/src/DataBox/DataBox.Autorest/help/Update-AzDataBoxJob.md new file mode 100644 index 000000000000..e2f58ba09b7f --- /dev/null +++ b/src/DataBox/DataBox.Autorest/help/Update-AzDataBoxJob.md @@ -0,0 +1,572 @@ +--- +external help file: +Module Name: Az.DataBox +online version: https://learn.microsoft.com/powershell/module/az.databox/update-azdataboxjob +schema: 2.0.0 +--- + +# Update-AzDataBoxJob + +## SYNOPSIS +Updates the properties of an existing job. + +## SYNTAX + +``` +Update-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ContactDetail ] [-ContactDetailContactName ] [-ContactDetailMobile ] + [-ContactDetailPhone ] [-ContactDetailPhoneExtension ] + [-EncryptionPreferenceDoubleEncryption ] + [-EncryptionPreferenceHardwareEncryption ] [-IdentityType ] + [-KeyEncryptionKey ] [-PreferencePreferredDataCenterRegion ] + [-ReturnToCustomerPackageDetailCarrierAccountNumber ] + [-ReturnToCustomerPackageDetailCarrierName ] [-ReturnToCustomerPackageDetailTrackingId ] + [-ReverseShippingDetail ] [-ReverseTransportPreferredShipmentType ] + [-ShippingAddress ] [-StorageAccountAccessTierPreference ] + [-Tag ] [-TransportPreferredShipmentType ] + [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Updates the properties of an existing job. + +## EXAMPLES + +### Example 1: Update databox job encryption from microsoft managed to customer managed with user assigned identities +```powershell +$keyEncryptionDetails = New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" + +$DebugPreference = "Continue" + +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } + +Update-AzDataBoxJob -Name "powershell10" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} + +$keyEncryptionDetails +``` + +```output +KekType KekUrl KekVaultResourceId +------- ------ ------------------ +CustomerManaged keyIdentifier /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName + +Name Location Status TransferType SkuName IdentityType DeliveryType Detail +---- -------- ------ ------------ ------- ------------ ------------ ------ +Powershell10 WestUS DeviceOrdered ImportToAzure DataBox UserAssigned NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails +``` + +Update databox job encryption from microsoft managed to customer managed with user assigned identities. + +### Example 2: Update databox job encryption from microsoft managed to customer managed with system identities in 2 updates +```powershell +$databoxUpdate = Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned" + +$databoxUpdate.Identity + +$keyEncryptionDetails = New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "SystemAssigned"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" + +$databoxUpdateWithCMK = Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -KeyEncryptionKey $keyEncryptionDetails + +$databoxUpdateWithCMK.Identity + +$databoxUpdateWithCMK.Detail.KeyEncryptionKey +``` + +```output +PrincipalId TenantId Type +----------- -------- ---- +920850f5-9b6b-4017-a81a-3dcafe348be7 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned + +PrincipalId TenantId Type +----------- -------- ---- +920850f5-9b6b-4017-a81a-3dcafe348be7 72f988bf-86f1-41af-91ab-2d7cd011db47 SystemAssigned + +KekType KekUrl KekVaultResourceId +------- ------ ------------------ +CustomerManaged keyIdentifier /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName +``` + +Update databox job encryption from microsoft managed to customer managed to customer managed with sytem assigned identity. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +### Example 3: Update databox job from system assigned to user assigned with customer managed key encryption +```powershell +$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" +$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" + +Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} +``` + +Update databox job from system assigned to user assigned with customer managed key encryption. +For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1 + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetail +Contact details for notification and shipping. +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailContactName +Contact name of the person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailMobile +Mobile number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPhone +Phone number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetailPhoneExtension +Phone extension number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPreferenceDoubleEncryption +Defines secondary layer of software-based encryption enablement. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionPreferenceHardwareEncryption +Defines Hardware level encryption (Only for disk) + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +Identity type + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfMatch +Defines the If-Match condition. +The patch will be performed only if the ETag of the job on the server matches this value. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyEncryptionKey +Key encryption key for the job. +To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the job Resource within the specified resource group. +job names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: JobName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PreferencePreferredDataCenterRegion +Preferred data center region. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The Resource Group Name + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnToCustomerPackageDetailCarrierAccountNumber +Carrier Account Number of customer for customer disk. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnToCustomerPackageDetailCarrierName +Name of the carrier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnToCustomerPackageDetailTrackingId +Tracking Id of shipment. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseShippingDetail +Shipping address where customer wishes to receive the device. +To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReverseTransportPreferredShipmentType +Indicates Shipment Logistics type that the customer preferred. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping address of the customer. +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountAccessTierPreference +Preferences related to the Access Tier of storage accounts. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The Subscription Id + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The list of key value pairs that describe the resource. +These tags can be used in viewing and grouping this resource (across resource groups). + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TransportPreferredShipmentType +Indicates Shipment Logistics type that the customer preferred. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserAssignedIdentity +User Assigned Identities + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DataBox/DataBox.Autorest/internal/Az.DataBox.internal.psm1 b/src/DataBox/DataBox.Autorest/internal/Az.DataBox.internal.psm1 index 9a050740b3a8..b79898e4845c 100644 --- a/src/DataBox/DataBox.Autorest/internal/Az.DataBox.internal.psm1 +++ b/src/DataBox/DataBox.Autorest/internal/Az.DataBox.internal.psm1 @@ -24,12 +24,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/DataBox/DataBox.Autorest/test-module.ps1 b/src/DataBox/DataBox.Autorest/test-module.ps1 index d55d9411dd68..2832e19f838d 100644 --- a/src/DataBox/DataBox.Autorest/test-module.ps1 +++ b/src/DataBox/DataBox.Autorest/test-module.ps1 @@ -74,13 +74,14 @@ try if ($TestMode -ne 'playback') { setupEnv + } else { + $env:AzPSAutorestTestPlaybackMode = $true } $testFolder = Join-Path $PSScriptRoot 'test' if ($null -ne $TestName) { Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } else - { + } else { Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } } Finally @@ -89,6 +90,9 @@ try { cleanupEnv } + else { + $env:AzPSAutorestTestPlaybackMode = '' + } } Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/test/loadEnv.ps1 b/src/DataBox/DataBox.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/DataBox/DataBox.Autorest/test/loadEnv.ps1 +++ b/src/DataBox/DataBox.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/DataBox/DataBox.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/DataBox/DataBox.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/DataBox/DataBox.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/DataBox/DataBox/Az.DataBox.psd1 b/src/DataBox/DataBox/Az.DataBox.psd1 index 05b213662981..79b66378f412 100644 --- a/src/DataBox/DataBox/Az.DataBox.psd1 +++ b/src/DataBox/DataBox/Az.DataBox.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 4/22/2024 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.3'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.17.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'DataBox.Autorest/bin/Az.DataBox.private.dll' @@ -63,7 +63,7 @@ ScriptsToProcess = @() TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'DataBox.Autorest/Az.DataBox.format.ps1xml' +FormatsToProcess = 'DataBox.Autorest\Az.DataBox.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('DataBox.Autorest/Az.DataBox.psm1') diff --git a/src/DataBox/DataBox/ChangeLog.md b/src/DataBox/DataBox/ChangeLog.md index 81917cc3f77c..a37386352996 100644 --- a/src/DataBox/DataBox/ChangeLog.md +++ b/src/DataBox/DataBox/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 0.3.0 * Generated powershell cmdlets from latest swagger diff --git a/src/DataBox/DataBox/help/Get-AzDataBoxJob.md b/src/DataBox/DataBox/help/Get-AzDataBoxJob.md index 750c629cf550..5bf925c651e9 100644 --- a/src/DataBox/DataBox/help/Get-AzDataBoxJob.md +++ b/src/DataBox/DataBox/help/Get-AzDataBoxJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjob schema: 2.0.0 @@ -15,19 +15,19 @@ Gets information about the specified job. ### List (Default) ``` Get-AzDataBoxJob [-SubscriptionId ] [-SkipToken ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] [-Expand ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzDataBoxJob -ResourceGroupName [-SubscriptionId ] [-SkipToken ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -35,7 +35,7 @@ Gets information about the specified job. ## EXAMPLES -### Example 1: Gets a particular job +### Example 1: Gets a particular job ```powershell Get-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" -SubscriptionId "SubscriptionId" ``` @@ -48,7 +48,7 @@ Powershell10 WestUS DeviceOrdered ImportToAzure DataBox None NonSchedu Gets a particular job -### Example 2: List all job under a subscription +### Example 2: List all job under a subscription ```powershell Get-AzDataBoxJob -SubscriptionId "SubscriptionId" ``` @@ -62,7 +62,7 @@ testorder uksouth Cancelled ImportToAzure DataBoxDisk None List all job under a subscription -### Example 3: List all job under a resourcegroup +### Example 3: List all job under a resourcegroup ```powershell Get-AzDataBoxJob -ResourceGroupName "resourceGroupName" ``` @@ -126,6 +126,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The Resource Group Name @@ -182,7 +197,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/Get-AzDataBoxJobCredential.md b/src/DataBox/DataBox/help/Get-AzDataBoxJobCredential.md index a1b2f05e1fb5..c8268c516ee6 100644 --- a/src/DataBox/DataBox/help/Get-AzDataBoxJobCredential.md +++ b/src/DataBox/DataBox/help/Get-AzDataBoxJobCredential.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjobcredential schema: 2.0.0 @@ -14,7 +14,7 @@ This method gets the unencrypted secrets related to the job. ``` Get-AzDataBoxJobCredential -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -94,6 +94,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The Resource Group Name @@ -166,7 +181,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxContactDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxContactDetailsObject.md index d63e1e7b9956..7469ad1d4b71 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxContactDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxContactDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxContactDetailsObject schema: 2.0.0 @@ -15,7 +15,7 @@ Create an in-memory object for ContactDetails. ``` New-AzDataBoxContactDetailsObject -ContactName -EmailList -Phone [-Mobile ] [-NotificationPreference ] [-PhoneExtension ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -23,7 +23,7 @@ Create an in-memory object for ContactDetails. ## EXAMPLES -### Example 1: Create a in-memory object for ContactDetails +### Example 1: Create a in-memory object for ContactDetails ```powershell New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" ``` @@ -129,6 +129,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -140,16 +155,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`NOTIFICATIONPREFERENCE `: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxCustomerDiskJobDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxCustomerDiskJobDetailsObject.md index d342053e081f..cdb42021267a 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxCustomerDiskJobDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxCustomerDiskJobDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject schema: 2.0.0 @@ -14,13 +14,13 @@ Create an in-memory object for DataBoxCustomerDiskJobDetails. ``` New-AzDataBoxCustomerDiskJobDetailsObject -ContactDetail -Type - [-DataExportDetail ] [-DataImportDetail ] - [-ExpectedDataSizeInTeraByte ] - [-ExportDiskDetailsCollection ] [-ImportDiskDetailsCollection ] + [-ExportDiskDetailsCollection ] + [-ReturnToCustomerPackageDetailCarrierAccountNumber ] [-DataExportDetail ] + [-DataImportDetail ] [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] [-Preference ] - [-ReturnToCustomerPackageDetailCarrierAccountNumber ] - [-ReverseShippingDetail ] [-ShippingAddress ] [] + [-ReverseShippingDetail ] [-ShippingAddress ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -169,6 +169,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReturnToCustomerPackageDetailCarrierAccountNumber Carrier Account Number of customer for customer disk. @@ -242,104 +257,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTACTDETAIL `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -`DATAEXPORTDETAIL `: Details of the data to be exported from azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `TransferConfiguration `: Configuration for the data transfer. - - `Type `: Type of the configuration for transfer. - - `[TransferAllDetail ]`: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - - `[TransferFilterDetail ]`: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`DATAIMPORTDETAIL `: Details of the data to be imported into azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`EXPORTDISKDETAILSCOLLECTION `: Contains the map of disk serial number to the disk details for export jobs. - - `[(Any) ]`: This indicates any property can be added to this object. - -`IMPORTDISKDETAILSCOLLECTION `: Contains the map of disk serial number to the disk details for import jobs. - - `[(Any) ]`: This indicates any property can be added to this object. - -`KEYENCRYPTIONKEY `: Details about which key encryption type is being used. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - -`PREFERENCE `: Preferences for the order. - - `[EncryptionPreferenceDoubleEncryption ]`: Defines secondary layer of software-based encryption enablement. - - `[EncryptionPreferenceHardwareEncryption ]`: Defines Hardware level encryption (Only for disk) - - `[PreferredDataCenterRegion ]`: Preferred data center region. - - `[ReverseTransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[StorageAccountAccessTierPreference ]`: Preferences related to the Access Tier of storage accounts. - - `[TransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - -`REVERSESHIPPINGDETAIL `: Optional Reverse Shipping details for order. - - `[ContactDetailContactName ]`: Contact name of the person. - - `[ContactDetailMobile ]`: Mobile number of the contact person. - - `[ContactDetailPhone ]`: Phone number of the contact person. - - `[ContactDetailPhoneExtension ]`: Phone extension number of the contact person. - - `[ShippingAddress ]`: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - -`SHIPPINGADDRESS `: Shipping address of the customer. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxDiskJobDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxDiskJobDetailsObject.md index 36560ba9ead2..10963e02f36d 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxDiskJobDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxDiskJobDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxDiskJobDetailsObject schema: 2.0.0 @@ -14,10 +14,11 @@ Create an in-memory object for DataBoxDiskJobDetails. ``` New-AzDataBoxDiskJobDetailsObject -ContactDetail -Type + [-Passkey ] [-PreferredDisk ] [-DataExportDetail ] [-DataImportDetail ] - [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] [-Passkey ] - [-Preference ] [-PreferredDisk ] - [-ReverseShippingDetail ] [-ShippingAddress ] [] + [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] [-Preference ] + [-ReverseShippingDetail ] [-ShippingAddress ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -25,7 +26,7 @@ Create an in-memory object for DataBoxDiskJobDetails. ## EXAMPLES -### Example 1: DataBoxDisk details in-memory object +### Example 1: DataBoxDisk details in-memory object ```powershell $contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" @@ -173,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReverseShippingDetail Optional Reverse Shipping details for order. To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. @@ -231,101 +247,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTACTDETAIL `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -`DATAEXPORTDETAIL `: Details of the data to be exported from azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `TransferConfiguration `: Configuration for the data transfer. - - `Type `: Type of the configuration for transfer. - - `[TransferAllDetail ]`: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - - `[TransferFilterDetail ]`: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`DATAIMPORTDETAIL `: Details of the data to be imported into azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`KEYENCRYPTIONKEY `: Details about which key encryption type is being used. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - -`PREFERENCE `: Preferences for the order. - - `[EncryptionPreferenceDoubleEncryption ]`: Defines secondary layer of software-based encryption enablement. - - `[EncryptionPreferenceHardwareEncryption ]`: Defines Hardware level encryption (Only for disk) - - `[PreferredDataCenterRegion ]`: Preferred data center region. - - `[ReverseTransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[StorageAccountAccessTierPreference ]`: Preferences related to the Access Tier of storage accounts. - - `[TransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - -`PREFERREDDISK `: User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. - - `[(Any) ]`: This indicates any property can be added to this object. - -`REVERSESHIPPINGDETAIL `: Optional Reverse Shipping details for order. - - `[ContactDetailContactName ]`: Contact name of the person. - - `[ContactDetailMobile ]`: Mobile number of the contact person. - - `[ContactDetailPhone ]`: Phone number of the contact person. - - `[ContactDetailPhoneExtension ]`: Phone extension number of the contact person. - - `[ShippingAddress ]`: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - -`SHIPPINGADDRESS `: Shipping address of the customer. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxHeavyJobDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxHeavyJobDetailsObject.md index 76c5b0cfa976..26e4a7fe532b 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxHeavyJobDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxHeavyJobDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxHeavyJobDetailsObject schema: 2.0.0 @@ -14,10 +14,11 @@ Create an in-memory object for DataBoxHeavyJobDetails. ``` New-AzDataBoxHeavyJobDetailsObject -ContactDetail -Type - [-DataExportDetail ] [-DataImportDetail ] - [-DevicePassword ] [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] - [-Preference ] [-ReverseShippingDetail ] - [-ShippingAddress ] [] + [-DevicePassword ] [-DataExportDetail ] + [-DataImportDetail ] [-ExpectedDataSizeInTeraByte ] + [-KeyEncryptionKey ] [-Preference ] + [-ReverseShippingDetail ] [-ShippingAddress ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -25,7 +26,7 @@ Create an in-memory object for DataBoxHeavyJobDetails. ## EXAMPLES -### Example 1: Create a in-memory object for DataBoxHeavyJobDetails +### Example 1: Create a in-memory object for DataBoxHeavyJobDetails ```powershell $contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" @@ -159,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReverseShippingDetail Optional Reverse Shipping details for order. To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. @@ -217,98 +233,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTACTDETAIL `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -`DATAEXPORTDETAIL `: Details of the data to be exported from azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `TransferConfiguration `: Configuration for the data transfer. - - `Type `: Type of the configuration for transfer. - - `[TransferAllDetail ]`: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - - `[TransferFilterDetail ]`: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`DATAIMPORTDETAIL `: Details of the data to be imported into azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`KEYENCRYPTIONKEY `: Details about which key encryption type is being used. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - -`PREFERENCE `: Preferences for the order. - - `[EncryptionPreferenceDoubleEncryption ]`: Defines secondary layer of software-based encryption enablement. - - `[EncryptionPreferenceHardwareEncryption ]`: Defines Hardware level encryption (Only for disk) - - `[PreferredDataCenterRegion ]`: Preferred data center region. - - `[ReverseTransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[StorageAccountAccessTierPreference ]`: Preferences related to the Access Tier of storage accounts. - - `[TransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - -`REVERSESHIPPINGDETAIL `: Optional Reverse Shipping details for order. - - `[ContactDetailContactName ]`: Contact name of the person. - - `[ContactDetailMobile ]`: Mobile number of the contact person. - - `[ContactDetailPhone ]`: Phone number of the contact person. - - `[ContactDetailPhoneExtension ]`: Phone extension number of the contact person. - - `[ShippingAddress ]`: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - -`SHIPPINGADDRESS `: Shipping address of the customer. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxJob.md b/src/DataBox/DataBox/help/New-AzDataBoxJob.md index 4b6d926ea31a..39ba5a0e8edd 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxJob.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/new-azdataboxjob schema: 2.0.0 @@ -14,11 +14,11 @@ Existing job cannot be updated with this API and should instead be updated with ## SYNTAX ``` -New-AzDataBoxJob -Name -ResourceGroupName -Location -SkuName - -TransferType [-SubscriptionId ] [-DeliveryInfoScheduledDateTime ] +New-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] -Location + -SkuName -TransferType [-DeliveryInfoScheduledDateTime ] [-DeliveryType ] [-Detail ] [-IdentityType ] [-SkuDisplayName ] [-SkuFamily ] [-Tag ] [-UserAssignedIdentity ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -27,7 +27,7 @@ Existing job cannot be updated with this API and should instead be updated with ## EXAMPLES -### Example 1: Create a databox import job +### Example 1: Create a databox import job ```powershell $dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" $contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" @@ -224,11 +224,9 @@ New-AzDataBoxJob -Name "testJobName1" -SubscriptionId "YourSubscriptionId" -Reso ``` ```output - Name Location Status TransferType SkuName IdentityType DeliveryType Detail ---- -------- ------ ------------ ------- ------------ ------------ ------ testJobName1 westus AwaitingShipmentDetails ImportToAzure DataBoxCustomerDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails - ``` Creates a databox customer disk job to import data to Azure. @@ -246,11 +244,9 @@ New-AzDataBoxJob -Name "testJobName2" -SubscriptionId "YourSubscriptionId" -Reso ``` ```output - Name Location Status TransferType SkuName IdentityType DeliveryType Detail ---- -------- ------ ------------ ------- ------------ ------------ ------ testJobName2 westus AwaitingShipmentDetails ExportFromAzure DataBoxCustomerDisk None NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails - ``` Creates a databox customer disk job to export data from Azure. @@ -400,6 +396,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The Resource Group Name @@ -563,83 +574,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`DETAIL `: Details of a job run. This field will only be sent for expand details filter. - - `ContactDetail `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - - `Type `: Indicates the type of job details. - - `[DataExportDetail ]`: Details of the data to be exported from azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `TransferConfiguration `: Configuration for the data transfer. - - `Type `: Type of the configuration for transfer. - - `[TransferAllDetail ]`: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - - `[TransferFilterDetail ]`: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - - `[DataImportDetail ]`: Details of the data to be imported into azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - - `[ExpectedDataSizeInTeraByte ]`: The expected size of the data, which needs to be transferred in this job, in terabytes. - - `[KeyEncryptionKey ]`: Details about which key encryption type is being used. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - - `[Preference ]`: Preferences for the order. - - `[EncryptionPreferenceDoubleEncryption ]`: Defines secondary layer of software-based encryption enablement. - - `[EncryptionPreferenceHardwareEncryption ]`: Defines Hardware level encryption (Only for disk) - - `[PreferredDataCenterRegion ]`: Preferred data center region. - - `[ReverseTransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[StorageAccountAccessTierPreference ]`: Preferences related to the Access Tier of storage accounts. - - `[TransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[ReverseShippingDetail ]`: Optional Reverse Shipping details for order. - - `[ContactDetailContactName ]`: Contact name of the person. - - `[ContactDetailMobile ]`: Mobile number of the contact person. - - `[ContactDetailPhone ]`: Phone number of the contact person. - - `[ContactDetailPhoneExtension ]`: Phone extension number of the contact person. - - `[ShippingAddress ]`: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - - `[ShippingAddress ]`: Shipping address of the customer. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxJobDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxJobDetailsObject.md index e4b36615386b..361c8d72c97b 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxJobDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxJobDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxJobDetailsObject schema: 2.0.0 @@ -14,10 +14,11 @@ Create an in-memory object for DataBoxJobDetails. ``` New-AzDataBoxJobDetailsObject -ContactDetail -Type - [-DataExportDetail ] [-DataImportDetail ] - [-DevicePassword ] [-ExpectedDataSizeInTeraByte ] [-KeyEncryptionKey ] - [-Preference ] [-ReverseShippingDetail ] - [-ShippingAddress ] [] + [-DevicePassword ] [-DataExportDetail ] + [-DataImportDetail ] [-ExpectedDataSizeInTeraByte ] + [-KeyEncryptionKey ] [-Preference ] + [-ReverseShippingDetail ] [-ShippingAddress ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -25,7 +26,7 @@ Create an in-memory object for DataBoxJobDetails. ## EXAMPLES -### Example 1: Creates a databox job detail in memory object +### Example 1: Creates a databox job detail in memory object ```powershell $contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" @@ -174,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReverseShippingDetail Optional Reverse Shipping details for order. To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. @@ -232,98 +248,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTACTDETAIL `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -`DATAEXPORTDETAIL `: Details of the data to be exported from azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `TransferConfiguration `: Configuration for the data transfer. - - `Type `: Type of the configuration for transfer. - - `[TransferAllDetail ]`: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - - `[TransferFilterDetail ]`: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`DATAIMPORTDETAIL `: Details of the data to be imported into azure. - - `AccountDetailDataAccountType `: Account Type of the data to be transferred. - - `[AccountDetailSharePassword ]`: Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+ - - `[LogCollectionLevel ]`: Level of the logs to be collected. - -`KEYENCRYPTIONKEY `: Details about which key encryption type is being used. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - -`PREFERENCE `: Preferences for the order. - - `[EncryptionPreferenceDoubleEncryption ]`: Defines secondary layer of software-based encryption enablement. - - `[EncryptionPreferenceHardwareEncryption ]`: Defines Hardware level encryption (Only for disk) - - `[PreferredDataCenterRegion ]`: Preferred data center region. - - `[ReverseTransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - - `[StorageAccountAccessTierPreference ]`: Preferences related to the Access Tier of storage accounts. - - `[TransportPreferencePreferredShipmentType ]`: Indicates Shipment Logistics type that the customer preferred. - -`REVERSESHIPPINGDETAIL `: Optional Reverse Shipping details for order. - - `[ContactDetailContactName ]`: Contact name of the person. - - `[ContactDetailMobile ]`: Mobile number of the contact person. - - `[ContactDetailPhone ]`: Phone number of the contact person. - - `[ContactDetailPhoneExtension ]`: Phone extension number of the contact person. - - `[ShippingAddress ]`: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - -`SHIPPINGADDRESS `: Shipping address of the customer. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxKeyEncryptionKeyObject.md b/src/DataBox/DataBox/help/New-AzDataBoxKeyEncryptionKeyObject.md index dea76838237d..0b8c9a48a965 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxKeyEncryptionKeyObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxKeyEncryptionKeyObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxKeyEncryptionKeyObject schema: 2.0.0 @@ -14,7 +14,7 @@ Create an in-memory object for KeyEncryptionKey. ``` New-AzDataBoxKeyEncryptionKeyObject -KekType [-IdentityProperty ] - [-KekUrl ] [-KekVaultResourceId ] [] + [-KekUrl ] [-KekVaultResourceId ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -22,7 +22,7 @@ Create an in-memory object for KeyEncryptionKey. ## EXAMPLES -### Example 1: Create a in-memory object for KeyEncryptionKey +### Example 1: Create a in-memory object for KeyEncryptionKey ```powershell New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" ``` @@ -100,6 +100,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -111,16 +126,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`IDENTITYPROPERTY `: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxManagedDiskDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxManagedDiskDetailsObject.md index 714a97154230..b1f94a05e947 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxManagedDiskDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxManagedDiskDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxManagedDiskDetailsObject schema: 2.0.0 @@ -13,8 +13,9 @@ Create an in-memory object for ManagedDiskDetails. ## SYNTAX ``` -New-AzDataBoxManagedDiskDetailsObject -DataAccountType -ResourceGroupId - -StagingStorageAccountId [-SharePassword ] [] +New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId -StagingStorageAccountId + -DataAccountType [-SharePassword ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -22,7 +23,7 @@ Create an in-memory object for ManagedDiskDetails. ## EXAMPLES -### Example 1: ManagedDisk object +### Example 1: ManagedDisk object ```powershell New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" ``` @@ -52,6 +53,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupId Resource Group Id of the compute disks. @@ -114,7 +130,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxShippingAddressObject.md b/src/DataBox/DataBox/help/New-AzDataBoxShippingAddressObject.md index efebbfd3f14d..194bc9019764 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxShippingAddressObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxShippingAddressObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxShippingAddressObject schema: 2.0.0 @@ -16,7 +16,8 @@ Create an in-memory object for ShippingAddress. New-AzDataBoxShippingAddressObject -Country -StreetAddress1 [-AddressType ] [-City ] [-CompanyName ] [-PostalCode ] [-SkipAddressValidation ] [-StateOrProvince ] [-StreetAddress2 ] [-StreetAddress3 ] - [-TaxIdentificationNumber ] [-ZipExtendedCode ] [] + [-TaxIdentificationNumber ] [-ZipExtendedCode ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -24,7 +25,7 @@ Create an in-memory object for ShippingAddress. ## EXAMPLES -### Example 1: Shipping Address object +### Example 1: Shipping Address object ```powershell New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" ``` @@ -114,6 +115,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SkipAddressValidation Flag to indicate if customer has chosen to skip default address validation. @@ -230,7 +246,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxStorageAccountDetailsObject.md b/src/DataBox/DataBox/help/New-AzDataBoxStorageAccountDetailsObject.md index db7e1b63daeb..65bd901ccd08 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxStorageAccountDetailsObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxStorageAccountDetailsObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxStorageAccountDetailsObject schema: 2.0.0 @@ -13,8 +13,8 @@ Create an in-memory object for StorageAccountDetails. ## SYNTAX ``` -New-AzDataBoxStorageAccountDetailsObject -DataAccountType -StorageAccountId - [-SharePassword ] [] +New-AzDataBoxStorageAccountDetailsObject -StorageAccountId -DataAccountType + [-SharePassword ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -22,7 +22,7 @@ Create an in-memory object for StorageAccountDetails. ## EXAMPLES -### Example 1: Storage account in-memory object +### Example 1: Storage account in-memory object ```powershell New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SharePassword Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. @@ -99,7 +114,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/New-AzDataBoxTransferConfigurationObject.md b/src/DataBox/DataBox/help/New-AzDataBoxTransferConfigurationObject.md index d0ac2241a7e9..fc8fae75cc02 100644 --- a/src/DataBox/DataBox/help/New-AzDataBoxTransferConfigurationObject.md +++ b/src/DataBox/DataBox/help/New-AzDataBoxTransferConfigurationObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxTransferConfigurationObject schema: 2.0.0 @@ -15,7 +15,8 @@ Create an in-memory object for TransferConfiguration. ``` New-AzDataBoxTransferConfigurationObject -Type [-TransferAllDetail ] - [-TransferFilterDetail ] [] + [-TransferFilterDetail ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -23,7 +24,7 @@ Create an in-memory object for TransferConfiguration. ## EXAMPLES -### Example 1: In-memory object for export job transfer configuration +### Example 1: In-memory object for export job transfer configuration ```powershell New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} ``` @@ -32,6 +33,21 @@ Create a in-memory object for export jobs TransferConfiguration ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TransferAllDetail Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll. @@ -92,29 +108,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`TRANSFERALLDETAIL `: Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll. - - `[IncludeDataAccountType ]`: Type of the account of data - - `[IncludeTransferAllBlob ]`: To indicate if all Azure blobs have to be transferred - - `[IncludeTransferAllFile ]`: To indicate if all Azure Files have to be transferred - -`TRANSFERFILTERDETAIL `: Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter. - - `[AzureFileFilterDetailFilePathList ]`: List of full path of the files to be transferred. - - `[AzureFileFilterDetailFilePrefixList ]`: Prefix list of the Azure files to be transferred. - - `[AzureFileFilterDetailFileShareList ]`: List of file shares to be transferred. - - `[BlobFilterDetailBlobPathList ]`: List of full path of the blobs to be transferred. - - `[BlobFilterDetailBlobPrefixList ]`: Prefix list of the Azure blobs to be transferred. - - `[BlobFilterDetailContainerList ]`: List of blob containers to be transferred. - - `[IncludeDataAccountType ]`: Type of the account of data. - - `[IncludeFilterFileDetail ]`: Details of the filter files to be used for data transfer. - - `FilterFilePath `: Path of the file that contains the details of all items to transfer. - - `FilterFileType `: Type of the filter file. - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/Remove-AzDataBoxJob.md b/src/DataBox/DataBox/help/Remove-AzDataBoxJob.md index 978919d36442..dc6427659252 100644 --- a/src/DataBox/DataBox/help/Remove-AzDataBoxJob.md +++ b/src/DataBox/DataBox/help/Remove-AzDataBoxJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/remove-azdataboxjob schema: 2.0.0 @@ -14,7 +14,8 @@ Deletes a job. ``` Remove-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -22,7 +23,7 @@ Deletes a job. ## EXAMPLES -### Example 1: Deletes a job +### Example 1: Deletes a job ```powershell Remove-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" ``` @@ -108,6 +109,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The Resource Group Name @@ -180,7 +196,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/Stop-AzDataBoxJob.md b/src/DataBox/DataBox/help/Stop-AzDataBoxJob.md index ee97419c783d..15796be721c0 100644 --- a/src/DataBox/DataBox/help/Stop-AzDataBoxJob.md +++ b/src/DataBox/DataBox/help/Stop-AzDataBoxJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/stop-azdataboxjob schema: 2.0.0 @@ -13,8 +13,9 @@ CancelJob. ## SYNTAX ``` -Stop-AzDataBoxJob -Name -ResourceGroupName -Reason [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +Stop-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId ] -Reason + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -22,7 +23,7 @@ CancelJob. ## EXAMPLES -### Example 1: Cancel a Job +### Example 1: Cancel a Job ```powershell Stop-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" -Reason "Powershell demo job" Get-AzDataBoxJob -Name "Powershell10" -ResourceGroupName "resourceGroupName" @@ -85,6 +86,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Reason Reason for cancellation. @@ -172,7 +188,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/DataBox/DataBox/help/Update-AzDataBoxJob.md b/src/DataBox/DataBox/help/Update-AzDataBoxJob.md index 0d85001a3c4e..5d1794e22433 100644 --- a/src/DataBox/DataBox/help/Update-AzDataBoxJob.md +++ b/src/DataBox/DataBox/help/Update-AzDataBoxJob.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.DataBox-help.xml Module Name: Az.DataBox online version: https://learn.microsoft.com/powershell/module/az.databox/update-azdataboxjob schema: 2.0.0 @@ -24,8 +24,8 @@ Update-AzDataBoxJob -Name -ResourceGroupName [-SubscriptionId [-ReverseShippingDetail ] [-ReverseTransportPreferredShipmentType ] [-ShippingAddress ] [-StorageAccountAccessTierPreference ] [-Tag ] [-TransportPreferredShipmentType ] - [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-UserAssignedIdentity ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -33,7 +33,7 @@ Updates the properties of an existing job. ## EXAMPLES -### Example 1: Update databox job encryption from microsoft managed to customer managed with user assigned identities +### Example 1: Update databox job encryption from microsoft managed to customer managed with user assigned identities ```powershell $keyEncryptionDetails = New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" @@ -343,6 +343,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The Resource Group Name @@ -568,58 +583,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -`CONTACTDETAIL `: Contact details for notification and shipping. - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[NotificationPreference ]`: Notification preference for a job stage. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -`KEYENCRYPTIONKEY `: Key encryption key for the job. - - `KekType `: Type of encryption key used for key encryption. - - `[IdentityProperty ]`: Managed identity properties used for key encryption. - - `[Type ]`: Managed service identity type. - - `[UserAssignedResourceId ]`: Arm resource id for user assigned identity to be used to fetch MSI token. - - `[KekUrl ]`: Key encryption key. It is required in case of Customer managed KekType. - - `[KekVaultResourceId ]`: Kek vault resource id. It is required in case of Customer managed KekType. - -`REVERSESHIPPINGDETAIL `: Shipping address where customer wishes to receive the device. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - -`SHIPPINGADDRESS `: Shipping address of the customer. - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[SkipAddressValidation ]`: Flag to indicate if customer has chosen to skip default address validation - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[TaxIdentificationNumber ]`: Tax Identification Number - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psd1 b/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psd1 index 7438e7a866b6..166ffccdb723 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psd1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psd1 @@ -1,145 +1,24 @@ -# -# Module manifest for module 'Az.EdgeOrder' -# -# Generated by: Microsoft Corporation -# -# Generated on: 11/29/2021 -# - @{ - -# Script module or binary module file associated with this manifest. -RootModule = './Az.EdgeOrder.psm1' - -# Version number of this module. -ModuleVersion = '0.1.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = 'ffbed74a-2473-42d2-95fc-73adffd13d49' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: EdgeOrder cmdlets' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = './bin/Az.EdgeOrder.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.EdgeOrder.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzEdgeOrder', 'Get-AzEdgeOrderAddress', - 'Get-AzEdgeOrderConfiguration', 'Get-AzEdgeOrderItem', - 'Get-AzEdgeOrderProductFamily', - 'Get-AzEdgeOrderProductFamilyMetadata', - 'Invoke-AzEdgeOrderItemCancellation', - 'Invoke-AzEdgeOrderReturnOrderItem', 'New-AzEdgeOrderAddress', - 'New-AzEdgeOrderContactDetailsObject', - 'New-AzEdgeOrderFilterablePropertyObject', - 'New-AzEdgeOrderHierarchyInformationObject', 'New-AzEdgeOrderItem', - 'New-AzEdgeOrderOrderItemDetailsObject', - 'New-AzEdgeOrderPreferencesObject', - 'New-AzEdgeOrderShippingAddressObject', 'Remove-AzEdgeOrderAddress', - 'Remove-AzEdgeOrderItem', 'Update-AzEdgeOrderAddress', - 'Update-AzEdgeOrderItem' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = '*' - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - + GUID = 'ffbed74a-2473-42d2-95fc-73adffd13d49' + RootModule = './Az.EdgeOrder.psm1' + ModuleVersion = '0.1.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: EdgeOrder cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.EdgeOrder.private.dll' + FormatsToProcess = './Az.EdgeOrder.format.ps1xml' + FunctionsToExport = 'Get-AzEdgeOrder', 'Get-AzEdgeOrderAddress', 'Get-AzEdgeOrderConfiguration', 'Get-AzEdgeOrderItem', 'Get-AzEdgeOrderProductFamily', 'Get-AzEdgeOrderProductFamilyMetadata', 'Invoke-AzEdgeOrderItemCancellation', 'Invoke-AzEdgeOrderReturnOrderItem', 'New-AzEdgeOrderAddress', 'New-AzEdgeOrderContactDetailsObject', 'New-AzEdgeOrderFilterablePropertyObject', 'New-AzEdgeOrderHierarchyInformationObject', 'New-AzEdgeOrderItem', 'New-AzEdgeOrderOrderItemDetailsObject', 'New-AzEdgeOrderPreferencesObject', 'New-AzEdgeOrderShippingAddressObject', 'Remove-AzEdgeOrderAddress', 'Remove-AzEdgeOrderItem', 'Update-AzEdgeOrderAddress', 'Update-AzEdgeOrderItem', '*' + AliasesToExport = '*' + PrivateData = @{ PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','EdgeOrder' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - # ReleaseNotes = '' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'EdgeOrder' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } } - diff --git a/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psm1 b/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psm1 index f14c8b38d8db..6596a9e866b7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psm1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/Az.EdgeOrder.psm1 @@ -25,17 +25,17 @@ } } if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0 + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru } } } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" @@ -47,33 +47,41 @@ # Ask for the shared functionality table $VTable = Register-AzModule - + # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad - + + # Following two delegates are added for telemetry + $instance.GetTelemetryId = $VTable.GetTelemetryId + $instance.Telemetry = $VTable.Telemetry + + # Delegate to sanitize the output object + $instance.SanitizeOutput = $VTable.SanitizerHandler + + # Delegate to get the telemetry info + $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo # Tweaks the pipeline per call $instance.OnNewRequest = $VTable.OnNewRequest - + # Gets shared parameter values $instance.GetParameterValue = $VTable.GetParameterValue - + # Allows shared module to listen to events from this module $instance.EventListener = $VTable.EventListener - + # Gets shared argument completers $instance.ArgumentCompleter = $VTable.ArgumentCompleter - + # The name of the currently selected Azure profile $instance.ProfileName = $VTable.ProfileName - # Load the custom module $customModulePath = Join-Path $PSScriptRoot './custom/Az.EdgeOrder.custom.psm1' if(Test-Path $customModulePath) { $null = Import-Module -Name $customModulePath } - + # Export nothing to clear implicit exports Export-ModuleMember @@ -93,12 +101,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/EdgeOrder/EdgeOrder.Autorest/README.md b/src/EdgeOrder/EdgeOrder.Autorest/README.md index 86126daa0a97..e047e87a60e1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/README.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/README.md @@ -3,7 +3,6 @@ This directory contains the PowerShell module for the EdgeOrder service. --- - ## Info - Modifiable: yes - Generated: all @@ -15,7 +14,7 @@ This directory contains the PowerShell module for the EdgeOrder service. This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -30,12 +29,12 @@ For information on how to develop for `Az.EdgeOrder`, see [how-to.md](how-to.md) ``` yaml require: # readme.azure.noprofile.md is the common configuration file - - $(this-folder)/../readme.azure.noprofile.md + - $(this-folder)/../../readme.azure.noprofile.md input-file: # You need to specify your swagger files here. - $(repo)/specification/edgeorder/resource-manager/Microsoft.EdgeOrder/stable/2021-12-01/edgeorder.json -branch: 34018925632ef75ef5416e3add65324e0a12489f +commit: 34018925632ef75ef5416e3add65324e0a12489f # If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally # - (this-folder)/relative-path-to-your-swagger @@ -50,6 +49,10 @@ inlining-threshold: 50 # uncomment following line to support viaIdentity for these post APIs # identity-correction-for-post: true +# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option +use-extension: + "@autorest/powershell": "3.x" + directive: # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set diff --git a/src/EdgeOrder/EdgeOrder.Autorest/build-module.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/build-module.ps1 index f049ab95fec5..dc84b7094ec5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/build-module.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/build-module.ps1 @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' $modelCmdlets = @('OrderItemDetails', 'ShippingAddress', 'ContactDetails', 'Preferences', 'HierarchyInformation', 'FilterableProperty') +$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' +if (Test-Path $modelCmdletFolder) { + $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder +} if ($modelCmdlets.Count -gt 0) { . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') CreateModelCmdlet($modelCmdlets) @@ -139,7 +143,8 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } Write-Host -ForegroundColor Green 'Creating format.ps1xml...' @@ -158,4 +163,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol Write-Host -ForegroundColor Green 'Creating example stubs...' Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder +if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) +{ + Write-Host -ForegroundColor Green 'Creating ux metadata...' + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') +} + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/EdgeOrder/EdgeOrder.Autorest/check-dependencies.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/check-dependencies.ps1 index b02ae9135957..c29591c7bfe1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/check-dependencies.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/check-dependencies.ps1 @@ -25,7 +25,7 @@ if(-not $Isolated) { function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { if($predicate) { $module = Get-Module -ListAvailable -Name $moduleName - if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." if ($requiredVersion) { @@ -47,7 +47,7 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' diff --git a/src/EdgeOrder/EdgeOrder.Autorest/create-model-cmdlets.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/create-model-cmdlets.ps1 index e5266d21679f..d756e721d9ac 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/create-model-cmdlets.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/create-model-cmdlets.ps1 @@ -23,9 +23,13 @@ function CreateModelCmdlet { } $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' - $ModuleName = 'Az.EdgeOrder'.Split(".")[1] $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' $null = New-Item -ItemType Directory -Force -Path $OutputDir + if (''.length -gt 0) { + $ModuleName = '' + } else { + $ModuleName = 'Az.EdgeOrder' + } $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' @@ -64,10 +68,10 @@ function CreateModelCmdlet { $ObjectType = $Model $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name - if ($ObjectType.StartsWith($ModuleName)) { + if ($ObjectType.StartsWith('EdgeOrder')) { $ModulePrefix = '' } else { - $ModulePrefix = $ModuleName + $ModulePrefix = 'EdgeOrder' } $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir @@ -115,7 +119,9 @@ function CreateModelCmdlet { # check whether completer is needed $completer = ''; if($Type.Split('.').Split('.')[-2] -eq 'Support') { - $completer += "`n [ArgumentCompleter([${Type}])]" + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" } $ParameterDefineScript = " [Parameter($ParameterDefineProperty)]${completer} @@ -156,7 +162,7 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object #> function New-Az${ModulePrefix}${ObjectType}Object { [OutputType('${ObjectTypeWithNamespace}')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderContactDetailsObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderContactDetailsObject.ps1 index 918db6ad1516..a2153077fab9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderContactDetailsObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderContactDetailsObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for ContactDetails. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderContactDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderContactDetailsObject #> function New-AzEdgeOrderContactDetailsObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderFilterablePropertyObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderFilterablePropertyObject.ps1 index bad30fd63503..ab96797da98c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderFilterablePropertyObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderFilterablePropertyObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for FilterableProperty. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject #> function New-AzEdgeOrderFilterablePropertyObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderHierarchyInformationObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderHierarchyInformationObject.ps1 index 826724126a51..ff3b701d7bea 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderHierarchyInformationObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderHierarchyInformationObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for HierarchyInformation. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject #> function New-AzEdgeOrderHierarchyInformationObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderOrderItemDetailsObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderOrderItemDetailsObject.ps1 index 16ee46de1e52..20b7297eedff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderOrderItemDetailsObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderOrderItemDetailsObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for OrderItemDetails. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject #> function New-AzEdgeOrderOrderItemDetailsObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderPreferencesObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderPreferencesObject.ps1 index 82562dd26cf0..62ef5a4a9130 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderPreferencesObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderPreferencesObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for Preferences. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderPreferencesObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderPreferencesObject #> function New-AzEdgeOrderPreferencesObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderShippingAddressObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderShippingAddressObject.ps1 index 73b0f7b9b013..c517c57fcde3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderShippingAddressObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/custom/autogen-model-cmdlets/New-AzEdgeOrderShippingAddressObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for ShippingAddress. .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderShippingAddressObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderShippingAddressObject #> function New-AzEdgeOrderShippingAddressObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress')] diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md index 88468ebce552..0c81d03fd8d9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrder.md @@ -1,8 +1,10 @@ ### Example 1: Get order details ```powershell $order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" -$order | fl +$order | Format-List +``` +```output CurrentStageDisplayName : CurrentStageName : Placed CurrentStageStartTime : 11/16/2021 10:35:00 AM diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md index 44d8fb2c0998..21872bff79b6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderAddress.md @@ -1,8 +1,10 @@ ### Example 1: Get address details ```powershell $address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" -$address | fl +$address | Format-List +``` +```output AddressValidationStatus : Valid ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md index 89da6897e47b..5126f70d5160 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderConfiguration.md @@ -6,7 +6,9 @@ $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCount $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) $configuration +``` +```output AvailabilityInformationAvailabilityStage : Available AvailabilityInformationDisabledReason : None AvailabilityInformationDisabledReasonMessage : diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md index 1ad37a64ad52..9912ffe2d75e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderItem.md @@ -1,8 +1,10 @@ ### Example 1: Get orderItem details ```powershell $orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -$ordderItem | fl +$ordderItem | Format-List +``` +```output ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress ForwardAddressValidationStatus : Valid diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md index 325be95e93c5..c660e2ae5fc5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamily.md @@ -1,8 +1,10 @@ ### Example 1: Get details of specific productFamilies ```powershell - $familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" +$familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" $familyDetails.ProductLine.Product.Configuration.HierarchyInformation +``` +```output ConfigurationName ProductFamilyName ProductLineName ProductName ----------------- ----------------- --------------- ----------- edgep_high azurestackedge azurestackedge azurestackedgegpu diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md index bcd6b11a15bc..cc566cc7e49b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Get-AzEdgeOrderProductFamilyMetadata.md @@ -2,7 +2,9 @@ ```powershell $productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId $productFamilyMeta.HierarchyInformation +``` +```output ConfigurationName ProductFamilyName ProductLineName ProductName ----------------- ----------------- --------------- ----------- azurestackedge diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md index 9ba865616487..d92d6ec0560f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderAddress.md @@ -15,8 +15,10 @@ $DebugPreference = "Continue" # } # } $address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" -$address | fl +$address | Format-List +``` +```output AddressValidationStatus : Valid ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderContactDetailsObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderContactDetailsObject.md index 846b03c170ad..385f4342aa3d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderContactDetailsObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderContactDetailsObject.md @@ -1,7 +1,9 @@ ### Example 1: Contact details object ```powershell $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +``` +```output ContactName : random EmailList : {"emailId"} Mobile : diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md index 20c3f220aebc..5e8481187012 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderFilterablePropertyObject.md @@ -1,8 +1,10 @@ ### Example 1: Filterable property object ```powershell $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -$filterableProperty | fl +$filterableProperty | Format-List +``` +```output SupportedValue : {US} Type : ShipToCountries ``` diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md index af3ef64053ac..a6370c84fae8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderHierarchyInformationObject.md @@ -1,8 +1,10 @@ ### Example 1: Creates hierarchy information object ```powershell $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -$HierarchyInformation | fl +$HierarchyInformation | Format-List +``` +```output ConfigurationName : EdgeP_High ProductFamilyName : azurestackedge ProductLineName : azurestackedge diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md index 4ef3df91c81d..ba0cdb1788cc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderItem.md @@ -4,9 +4,9 @@ $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -E $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails $DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { @@ -19,9 +19,11 @@ $DebugPreference = "Continue" # "Target": null # } # } -$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -$orderItem | fl +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem | Format-List +``` +```output ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress ForwardAddressValidationStatus : Valid @@ -50,7 +52,9 @@ $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyNa $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails +``` +```output Location Name Type -------- ---- ---- eastus OrderItemNameWithPref Microsoft.EdgeOrder/orderItems diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md index c43f176a3771..bfd087142971 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/New-AzEdgeOrderShippingAddressObject.md @@ -2,8 +2,10 @@ ```powershell $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -$ShippingDetails | fl +$ShippingDetails | Format-List +``` +```output AddressType : Commercial City : San Francisco CompanyName : diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md index e017f78e3a7a..48c0f65ae7ea 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderAddress.md @@ -13,8 +13,11 @@ $DebugPreference = "Continue" # "Target": null # } # } -$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddres $ShippingDetails +$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddress $ShippingDetails $updatedContactInAddress.ContactDetail.ContactName +``` + +```output ContactName2 ``` Update address details. \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md index 05f05e5c721e..6d9bfe943568 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/examples/Update-AzEdgeOrderItem.md @@ -15,8 +15,10 @@ $DebugPreference = "Continue" # } $updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail -$updatedOrderItem.ForwardAddressContactDetail | fl +$updatedOrderItem.ForwardAddressContactDetail | Format-List +``` +```output ContactName : ContactName2 EmailList : {useremailId} Mobile : diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 index 72c9fd3beafc..6cf33a19b57a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrder.ps1 @@ -20,19 +20,8 @@ Gets an order. .Description Gets an order. .Example -PS C:\> $order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" -PS C:\> $order | fl - -CurrentStageDisplayName : -CurrentStageName : Placed -CurrentStageStartTime : 11/16/2021 10:35:00 AM -CurrentStageStatus : Succeeded -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 -Name : pwOrderItem11 -OrderItemId : {/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell} -OrderStageHistory : {, } -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Type : Microsoft.EdgeOrder/orders +$order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" +$order | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource @@ -76,7 +65,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -126,21 +116,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrder_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrder_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrder_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -149,15 +168,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 index 515f2b64c5ec..fc0bbe59603c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderAddress.ps1 @@ -20,38 +20,8 @@ Gets information about the specified address. .Description Gets information about the specified address. .Example -PS C:\> $address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" -PS C:\> $address | fl - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress -Location : eastus -Name : pwvalidaddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress215 -Location : eastus -Name : pwvalidaddress215 -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress -Location : eastus -Name : TestPwAddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses +$address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" +$address | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource @@ -98,7 +68,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,21 +119,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -171,15 +171,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 index 91673b31bce8..a438b5c61a1e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderConfiguration.ps1 @@ -20,35 +20,11 @@ This method provides the list of configurations for the given product family, pr .Description This method provides the list of configurations for the given product family, product line and product under subscription. .Example -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $configuration - -AvailabilityInformationAvailabilityStage : Available -AvailabilityInformationDisabledReason : None -AvailabilityInformationDisabledReasonMessage : -CostInformationBillingInfoUrl : https://aka.ms/edgeHWcenter-pricinglink-custom -CostInformationBillingMeterDetail : {RentalFee, ShippingFee} -DescriptionAttribute : {} -DescriptionKeyword : {GPU} -DescriptionLink : {} -DescriptionLongDescription : -DescriptionShortDescription : -DescriptionType : Base -DimensionDepth : 2 -DimensionHeight : 15 -DimensionLength : 50 -DimensionLengthHeightUnit : IN -DimensionWeight : 50 -DimensionWeightUnit : LBS -DimensionWidth : 5 -DisplayName : Azure Stack Edge Pro - 2 GPU -FilterableProperty : {Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty} -HierarchyInformation : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation -ImageInformation : {} -Specification : {Usable compute, Usable memory, Usable storage} +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$configuration .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfiguration @@ -100,7 +76,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -150,19 +127,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ListExpanded = 'Az.EdgeOrder.private\Get-AzEdgeOrderConfiguration_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -171,15 +177,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 index 0e9cbc96cc4f..c51bad96161d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderItem.ps1 @@ -20,24 +20,8 @@ Gets an order item. .Description Gets an order item. .Example -PS C:\> $orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -PS C:\> $ordderItem | fl - -ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ForwardAddressValidationStatus : Valid -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/OrderItem-211115074927900249117427 -Location : eastus -Name : OrderItem-211115074927900249117427 -OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/Order-211115074927650235470998 -OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails -ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ReturnAddressValidationStatus : Valid -StartTime : 11/15/2021 7:49:29 AM -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/orderItems +$orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" +$ordderItem | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource @@ -91,7 +75,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -141,21 +126,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -164,15 +178,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 index 79037d7361c6..bb0fa46e764a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamily.ps1 @@ -20,14 +20,8 @@ This method provides the list of product families for the given subscription. .Description This method provides the list of product families for the given subscription. .Example -PS C:\> $familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" -PS C:\> $familyDetails.ProductLine.Product.Configuration.HierarchyInformation - -ConfigurationName ProductFamilyName ProductLineName ProductName ------------------ ----------------- --------------- ----------- -edgep_high azurestackedge azurestackedge azurestackedgegpu -edgepr_base azurestackedge azurestackedge azurestackedgepror -edgemr_mini azurestackedge azurestackedge azurestackedgeminir +$familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" +$familyDetails.ProductLine.Product.Configuration.HierarchyInformation .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamily @@ -74,7 +68,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -124,19 +119,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ListExpanded = 'Az.EdgeOrder.private\Get-AzEdgeOrderProductFamily_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -145,15 +169,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 index 51b9a0aea48f..cccecac9a8d8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Get-AzEdgeOrderProductFamilyMetadata.ps1 @@ -20,13 +20,8 @@ This method provides the list of product families metadata for the given subscri .Description This method provides the list of product families metadata for the given subscription. .Example -PS C:\> $productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId -PS C:\> $productFamilyMeta.HierarchyInformation - -ConfigurationName ProductFamilyName ProductLineName ProductName ------------------ ----------------- --------------- ----------- - azurestackedge - azurestackhub +$productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId +$productFamilyMeta.HierarchyInformation .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadataDetails @@ -49,7 +44,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -99,19 +95,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ List = 'Az.EdgeOrder.private\Get-AzEdgeOrderProductFamilyMetadata_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -120,15 +145,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 index 0b45912c24ce..a4b9fd9712ba 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderItemCancellation.ps1 @@ -85,7 +85,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -141,20 +142,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CancelExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderItemCancellation_CancelExpanded'; CancelViaIdentityExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderItemCancellation_CancelViaIdentityExpanded'; } if (('CancelExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -163,15 +193,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 index 3e2425987421..a0869b92ebf4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Invoke-AzEdgeOrderReturnOrderItem.ps1 @@ -20,7 +20,7 @@ Return order item. .Description Return order item. .Example -PS C:\>Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -129,7 +129,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -197,20 +198,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ReturnExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderReturnOrderItem_ReturnExpanded'; ReturnViaIdentityExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded'; } if (('ReturnExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -219,15 +249,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 index 5c16636ee853..f95899e868ed 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderAddress.ps1 @@ -22,9 +22,9 @@ Existing address can be updated with this API Creates a new address with the specified parameters. Existing address can be updated with this API .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -36,18 +36,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" -PS C:\> $address | fl - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress -Location : eastus -Name : TestPwAddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses +$address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" +$address | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource @@ -135,7 +125,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -197,19 +188,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.EdgeOrder.private\New-AzEdgeOrderAddress_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -218,15 +238,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderContactDetailsObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderContactDetailsObject.ps1 index fd9a02cabd47..c3a846f7704a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderContactDetailsObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderContactDetailsObject.ps1 @@ -22,16 +22,10 @@ Create an in-memory object for ContactDetails. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -ContactName : random -EmailList : {"emailId"} -Mobile : -Phone : 1234567890 -PhoneExtension : - .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderContactDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderContactDetailsObject #> function New-AzEdgeOrderContactDetailsObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails])] @@ -75,16 +69,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderContactDetailsObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -93,15 +110,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderFilterablePropertyObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderFilterablePropertyObject.ps1 index 546ae222fbe8..979d8f56108f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderFilterablePropertyObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderFilterablePropertyObject.ps1 @@ -20,16 +20,13 @@ Create an in-memory object for FilterableProperty. .Description Create an in-memory object for FilterableProperty. .Example -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $filterableProperty | fl - -SupportedValue : {US} -Type : ShipToCountries +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$filterableProperty | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject #> function New-AzEdgeOrderFilterablePropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty])] @@ -56,16 +53,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderFilterablePropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -74,15 +94,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderHierarchyInformationObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderHierarchyInformationObject.ps1 index d25c7809185d..c4479ade515a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderHierarchyInformationObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderHierarchyInformationObject.ps1 @@ -20,18 +20,13 @@ Create an in-memory object for HierarchyInformation. .Description Create an in-memory object for HierarchyInformation. .Example -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $HierarchyInformation | fl - -ConfigurationName : EdgeP_High -ProductFamilyName : azurestackedge -ProductLineName : azurestackedge -ProductName : azurestackedgegpu +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$HierarchyInformation | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject #> function New-AzEdgeOrderHierarchyInformationObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation])] @@ -69,16 +64,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderHierarchyInformationObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -87,15 +105,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 index cce299b3de86..2c8362e04865 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderItem.ps1 @@ -22,14 +22,14 @@ Existing order item cannot be updated with this api and should instead be update Creates an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails - -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails + +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -41,36 +41,15 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $orderItem | fl - -ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ForwardAddressValidationStatus : Valid -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell -Location : eastus -Name : examplePowershell -OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 -OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails -ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ReturnAddressValidationStatus : -StartTime : 11/16/2021 10:34:51 AM -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/orderItems - +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem | Format-List .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference -PS C:\> New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails - -Location Name Type --------- ---- ---- -eastus OrderItemNameWithPref Microsoft.EdgeOrder/orderItems +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference +New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource @@ -190,7 +169,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -252,19 +232,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.EdgeOrder.private\New-AzEdgeOrderItem_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -273,15 +282,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderOrderItemDetailsObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderOrderItemDetailsObject.ps1 index a1558cb55483..6103350c7992 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderOrderItemDetailsObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderOrderItemDetailsObject.ps1 @@ -20,8 +20,8 @@ Create an in-memory object for OrderItemDetails. .Description Create an in-memory object for OrderItemDetails. .Example -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails @@ -48,7 +48,7 @@ PRODUCTDETAIL : Unique identifier for configuration. [ProductLineName ]: Represents product line name that uniquely identifies product line [ProductName ]: Represents product name that uniquely identifies product .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject #> function New-AzEdgeOrderOrderItemDetailsObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails])] @@ -89,16 +89,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderOrderItemDetailsObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -107,15 +130,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderPreferencesObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderPreferencesObject.ps1 index 48fb6c8cc9ec..dbae59b4cf7d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderPreferencesObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderPreferencesObject.ps1 @@ -20,7 +20,7 @@ Create an in-memory object for Preferences. .Description Create an in-memory object for Preferences. .Example -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences @@ -42,7 +42,7 @@ NOTIFICATIONPREFERENCE : Notification preferences. TRANSPORTPREFERENCE : Preferences related to the shipment logistics of the order. PreferredShipmentType : Indicates Shipment Logistics type that the customer preferred. .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderPreferencesObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderPreferencesObject #> function New-AzEdgeOrderPreferencesObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences])] @@ -84,16 +84,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderPreferencesObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -102,15 +125,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderShippingAddressObject.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderShippingAddressObject.ps1 index 1b9eaa6fb42b..1da70e049926 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderShippingAddressObject.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/New-AzEdgeOrderShippingAddressObject.ps1 @@ -20,25 +20,14 @@ Create an in-memory object for ShippingAddress. .Description Create an in-memory object for ShippingAddress. .Example -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -$ShippingDetails | fl - -AddressType : Commercial -City : San Francisco -CompanyName : -Country : US -PostalCode : 94107 -StateOrProvince : CA -StreetAddress1 : 101 TOWNSEND ST -StreetAddress2 : -StreetAddress3 : -ZipExtendedCode : +$ShippingDetails | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderShippingAddressObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderShippingAddressObject #> function New-AzEdgeOrderShippingAddressObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress])] @@ -113,16 +102,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderShippingAddressObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -131,15 +143,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 index 9679ccbffe0d..5957049ec447 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -20,38 +20,8 @@ Gets information about the specified address. .Description Gets information about the specified address. .Example -PS C:\> $address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" -PS C:\> $address | fl - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress -Location : eastus -Name : pwvalidaddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress215 -Location : eastus -Name : pwvalidaddress215 -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress -Location : eastus -Name : TestPwAddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses +$address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" +$address | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource @@ -98,7 +68,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -148,21 +119,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrderAddress_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -171,17 +171,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -190,35 +207,11 @@ This method provides the list of configurations for the given product family, pr .Description This method provides the list of configurations for the given product family, product line and product under subscription. .Example -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) -PS C:\> $configuration - -AvailabilityInformationAvailabilityStage : Available -AvailabilityInformationDisabledReason : None -AvailabilityInformationDisabledReasonMessage : -CostInformationBillingInfoUrl : https://aka.ms/edgeHWcenter-pricinglink-custom -CostInformationBillingMeterDetail : {RentalFee, ShippingFee} -DescriptionAttribute : {} -DescriptionKeyword : {GPU} -DescriptionLink : {} -DescriptionLongDescription : -DescriptionShortDescription : -DescriptionType : Base -DimensionDepth : 2 -DimensionHeight : 15 -DimensionLength : 50 -DimensionLengthHeightUnit : IN -DimensionWeight : 50 -DimensionWeightUnit : LBS -DimensionWidth : 5 -DisplayName : Azure Stack Edge Pro - 2 GPU -FilterableProperty : {Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty} -HierarchyInformation : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation -ImageInformation : {} -Specification : {Usable compute, Usable memory, Usable storage} +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$configuration .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfiguration @@ -270,7 +263,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -320,19 +314,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ListExpanded = 'Az.EdgeOrder.private\Get-AzEdgeOrderConfiguration_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -341,17 +364,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -360,24 +400,8 @@ Gets an order item. .Description Gets an order item. .Example -PS C:\> $orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -PS C:\> $ordderItem | fl - -ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ForwardAddressValidationStatus : Valid -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/OrderItem-211115074927900249117427 -Location : eastus -Name : OrderItem-211115074927900249117427 -OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/Order-211115074927650235470998 -OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails -ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ReturnAddressValidationStatus : Valid -StartTime : 11/15/2021 7:49:29 AM -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/orderItems +$orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" +$ordderItem | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource @@ -431,7 +455,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -481,21 +506,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrderItem_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -504,17 +558,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -523,13 +594,8 @@ This method provides the list of product families metadata for the given subscri .Description This method provides the list of product families metadata for the given subscription. .Example -PS C:\> $productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId -PS C:\> $productFamilyMeta.HierarchyInformation - -ConfigurationName ProductFamilyName ProductLineName ProductName ------------------ ----------------- --------------- ----------- - azurestackedge - azurestackhub +$productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId +$productFamilyMeta.HierarchyInformation .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadataDetails @@ -552,7 +618,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -602,19 +669,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ List = 'Az.EdgeOrder.private\Get-AzEdgeOrderProductFamilyMetadata_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -623,17 +719,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -642,14 +755,8 @@ This method provides the list of product families for the given subscription. .Description This method provides the list of product families for the given subscription. .Example -PS C:\> $familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" -PS C:\> $familyDetails.ProductLine.Product.Configuration.HierarchyInformation - -ConfigurationName ProductFamilyName ProductLineName ProductName ------------------ ----------------- --------------- ----------- -edgep_high azurestackedge azurestackedge azurestackedgegpu -edgepr_base azurestackedge azurestackedge azurestackedgepror -edgemr_mini azurestackedge azurestackedge azurestackedgeminir +$familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" +$familyDetails.ProductLine.Product.Configuration.HierarchyInformation .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamily @@ -696,7 +803,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -746,19 +854,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ListExpanded = 'Az.EdgeOrder.private\Get-AzEdgeOrderProductFamily_ListExpanded'; } if (('ListExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -767,17 +904,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -786,19 +940,8 @@ Gets an order. .Description Gets an order. .Example -PS C:\> $order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" -PS C:\> $order | fl - -CurrentStageDisplayName : -CurrentStageName : Placed -CurrentStageStartTime : 11/16/2021 10:35:00 AM -CurrentStageStatus : Succeeded -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 -Name : pwOrderItem11 -OrderItemId : {/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell} -OrderStageHistory : {, } -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Type : Microsoft.EdgeOrder/orders +$order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" +$order | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource @@ -842,7 +985,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -892,21 +1036,50 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.EdgeOrder.private\Get-AzEdgeOrder_Get'; List = 'Az.EdgeOrder.private\Get-AzEdgeOrder_List'; List1 = 'Az.EdgeOrder.private\Get-AzEdgeOrder_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -915,17 +1088,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -999,7 +1189,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1055,20 +1246,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CancelExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderItemCancellation_CancelExpanded'; CancelViaIdentityExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderItemCancellation_CancelViaIdentityExpanded'; } if (('CancelExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1077,17 +1297,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1096,7 +1333,7 @@ Return order item. .Description Return order item. .Example -PS C:\>Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -1205,7 +1442,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1273,20 +1511,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ ReturnExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderReturnOrderItem_ReturnExpanded'; ReturnViaIdentityExpanded = 'Az.EdgeOrder.private\Invoke-AzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded'; } if (('ReturnExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1295,17 +1562,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1316,9 +1600,9 @@ Existing address can be updated with this API Creates a new address with the specified parameters. Existing address can be updated with this API .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -1330,18 +1614,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" -PS C:\> $address | fl - -AddressValidationStatus : Valid -ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress -Location : eastus -Name : TestPwAddress -ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/addresses +$address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" +$address | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource @@ -1429,7 +1703,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1491,19 +1766,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.EdgeOrder.private\New-AzEdgeOrderAddress_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1512,17 +1816,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1533,14 +1854,14 @@ Existing order item cannot be updated with this api and should instead be update Creates an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails - -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails + +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. # { # "Error": { @@ -1552,36 +1873,15 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails -PS C:\> $orderItem | fl - -ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ForwardAddressValidationStatus : Valid -Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell -Location : eastus -Name : examplePowershell -OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 -OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails -ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails -ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress -ReturnAddressValidationStatus : -StartTime : 11/16/2021 10:34:51 AM -SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData -Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags -Type : Microsoft.EdgeOrder/orderItems - +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem | Format-List .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference -PS C:\> New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails - -Location Name Type --------- ---- ---- -eastus OrderItemNameWithPref Microsoft.EdgeOrder/orderItems +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference +New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource @@ -1701,7 +2001,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1763,19 +2064,48 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.EdgeOrder.private\New-AzEdgeOrderItem_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1784,17 +2114,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -1803,7 +2150,7 @@ Deletes an address. .Description Deletes an address. .Example -PS C:\> Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId +Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -1863,7 +2210,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -1931,20 +2279,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.EdgeOrder.private\Remove-AzEdgeOrderAddress_Delete'; DeleteViaIdentity = 'Az.EdgeOrder.private\Remove-AzEdgeOrderAddress_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1953,17 +2330,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2031,7 +2425,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2099,20 +2494,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.EdgeOrder.private\Remove-AzEdgeOrderItem_Delete'; DeleteViaIdentity = 'Az.EdgeOrder.private\Remove-AzEdgeOrderItem_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2121,17 +2545,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2140,8 +2581,8 @@ Updates the properties of an existing address. .Description Updates the properties of an existing address. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -2153,9 +2594,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddres $ShippingDetails -PS C:\> $updatedContactInAddress.ContactDetail.ContactName -ContactName2 +$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +$updatedContactInAddress.ContactDetail.ContactName .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -2256,7 +2696,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2318,20 +2759,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderAddress_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderAddress_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2340,17 +2810,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2359,8 +2846,8 @@ Updates the properties of an existing order item. .Description Updates the properties of an existing order item. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -2372,15 +2859,9 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail - -PS C:\> $updatedOrderItem.ForwardAddressContactDetail | fl +$updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail -ContactName : ContactName2 -EmailList : {useremailId} -Mobile : -Phone : 1234567891 -PhoneExtension : +$updatedOrderItem.ForwardAddressContactDetail | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -2505,7 +2986,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2567,20 +3049,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderItem_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderItem_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2589,17 +3100,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2610,16 +3138,10 @@ Create an in-memory object for ContactDetails. .Example $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone -ContactName : random -EmailList : {"emailId"} -Mobile : -Phone : 1234567890 -PhoneExtension : - .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderContactDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderContactDetailsObject #> function New-AzEdgeOrderContactDetailsObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails])] @@ -2663,16 +3185,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderContactDetailsObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2681,17 +3226,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2700,16 +3262,13 @@ Create an in-memory object for FilterableProperty. .Description Create an in-memory object for FilterableProperty. .Example -PS C:\> $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") -PS C:\> $filterableProperty | fl - -SupportedValue : {US} -Type : ShipToCountries +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$filterableProperty | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject #> function New-AzEdgeOrderFilterablePropertyObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty])] @@ -2736,16 +3295,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderFilterablePropertyObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2754,17 +3336,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2773,18 +3372,13 @@ Create an in-memory object for HierarchyInformation. .Description Create an in-memory object for HierarchyInformation. .Example -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $HierarchyInformation | fl - -ConfigurationName : EdgeP_High -ProductFamilyName : azurestackedge -ProductLineName : azurestackedge -ProductName : azurestackedgegpu +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$HierarchyInformation | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject #> function New-AzEdgeOrderHierarchyInformationObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation])] @@ -2822,16 +3416,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderHierarchyInformationObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2840,17 +3457,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2859,8 +3493,8 @@ Create an in-memory object for OrderItemDetails. .Description Create an in-memory object for OrderItemDetails. .Example -PS C:\> $HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" -PS C:\> $details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails @@ -2887,7 +3521,7 @@ PRODUCTDETAIL : Unique identifier for configuration. [ProductLineName ]: Represents product line name that uniquely identifies product line [ProductName ]: Represents product name that uniquely identifies product .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject #> function New-AzEdgeOrderOrderItemDetailsObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails])] @@ -2928,16 +3562,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderOrderItemDetailsObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -2946,17 +3603,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -2965,7 +3639,7 @@ Create an in-memory object for Preferences. .Description Create an in-memory object for Preferences. .Example -PS C:\> $preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences @@ -2987,7 +3661,7 @@ NOTIFICATIONPREFERENCE : Notification preferences. TRANSPORTPREFERENCE : Preferences related to the shipment logistics of the order. PreferredShipmentType : Indicates Shipment Logistics type that the customer preferred. .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderPreferencesObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderPreferencesObject #> function New-AzEdgeOrderPreferencesObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences])] @@ -3029,16 +3703,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderPreferencesObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3047,17 +3744,34 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } <# @@ -3066,25 +3780,14 @@ Create an in-memory object for ShippingAddress. .Description Create an in-memory object for ShippingAddress. .Example -PS C:\> $ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -$ShippingDetails | fl - -AddressType : Commercial -City : San Francisco -CompanyName : -Country : US -PostalCode : 94107 -StateOrProvince : CA -StreetAddress1 : 101 TOWNSEND ST -StreetAddress2 : -StreetAddress3 : -ZipExtendedCode : +$ShippingDetails | Format-List .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress .Link -https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderShippingAddressObject +https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderShippingAddressObject #> function New-AzEdgeOrderShippingAddressObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress])] @@ -3159,16 +3862,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ __AllParameterSets = 'Az.EdgeOrder.custom\New-AzEdgeOrderShippingAddressObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -3177,15 +3903,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 index 45df17e16fba..69059983caa9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderAddress.ps1 @@ -20,7 +20,7 @@ Deletes an address. .Description Deletes an address. .Example -PS C:\> Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId +Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -80,7 +80,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -148,20 +149,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.EdgeOrder.private\Remove-AzEdgeOrderAddress_Delete'; DeleteViaIdentity = 'Az.EdgeOrder.private\Remove-AzEdgeOrderAddress_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -170,15 +200,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 index 2ecbf1ec666f..36e890c637f6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Remove-AzEdgeOrderItem.ps1 @@ -79,7 +79,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -147,20 +148,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.EdgeOrder.private\Remove-AzEdgeOrderItem_Delete'; DeleteViaIdentity = 'Az.EdgeOrder.private\Remove-AzEdgeOrderItem_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -169,15 +199,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 index 48c30a7e4835..914cff91daca 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderAddress.ps1 @@ -20,8 +20,8 @@ Updates the properties of an existing address. .Description Updates the properties of an existing address. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -33,9 +33,8 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddres $ShippingDetails -PS C:\> $updatedContactInAddress.ContactDetail.ContactName -ContactName2 +$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +$updatedContactInAddress.ContactDetail.ContactName .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -136,7 +135,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -198,20 +198,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderAddress_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderAddress_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -220,15 +249,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 index 673669c4ae12..8896ddc1e46a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/exports/Update-AzEdgeOrderItem.ps1 @@ -20,8 +20,8 @@ Updates the properties of an existing order item. .Description Updates the properties of an existing order item. .Example -PS C:\> $contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone -PS C:\> $DebugPreference = "Continue" +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" # You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. # { # "Error": { @@ -33,15 +33,9 @@ PS C:\> $DebugPreference = "Continue" # "Target": null # } # } -PS C:\> $updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail +$updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail -PS C:\> $updatedOrderItem.ForwardAddressContactDetail | fl - -ContactName : ContactName2 -EmailList : {useremailId} -Mobile : -Phone : 1234567891 -PhoneExtension : +$updatedOrderItem.ForwardAddressContactDetail | Format-List .Inputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity @@ -166,7 +160,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -228,20 +223,49 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ UpdateExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderItem_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.EdgeOrder.private\Update-AzEdgeOrderItem_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -250,15 +274,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generate-help.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/generate-help.ps1 index f8964626d0ab..b71842fdc536 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generate-help.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/generate-help.ps1 @@ -66,8 +66,8 @@ foreach($directory in $directories) $docsPath = Join-Path $docsFolder $directory.Name $null = New-Item -ItemType Directory -Force -Path $docsPath -ErrorAction SilentlyContinue $examplesPath = Join-Path $examplesFolder $directory.Name - - Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath + $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + Export-HelpMarkdown -ModuleInfo $moduleInfo -FunctionInfo $cmdletFunctionInfo -HelpInfo $cmdletHelpInfo -DocsFolder $docsPath -ExamplesFolder $examplesPath -AddComplexInterfaceInfo:$addComplexInterfaceInfo Write-Host -ForegroundColor Green "Created documentation in '$docsPath'" } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generate-portal-ux.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/generate-portal-ux.ps1 new file mode 100644 index 000000000000..d30c264874bd --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/generate-portal-ux.ps1 @@ -0,0 +1,375 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# +# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. +# ---------------------------------------------------------------------------------- +param([switch]$Isolated) +$ErrorActionPreference = 'Stop' + +$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path +if(-not $Isolated) { + Write-Host -ForegroundColor Green 'Creating isolated process...' + & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated + return +} + +$moduleName = 'Az.EdgeOrder' +$rootModuleName = '' +if ($rootModuleName -eq "") +{ + $rootModuleName = $moduleName +} +$modulePsd1 = Get-Item -Path (Join-Path $PSScriptRoot "./$moduleName.psd1") +$modulePath = $modulePsd1.FullName + +# Load DLL to use build-time cmdlets +Import-Module -Name $modulePath +Import-Module -Name (Join-Path $PSScriptRoot "./bin/$moduleName.private.dll") +$instance = [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module]::Instance +# Module info is shared per profile +$moduleInfo = Get-Module -Name $moduleName +$parameterSetsInfo = Get-Module -Name "$moduleName.private" + +$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet") + +function Test-FunctionSupported() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + If ($buildinfunctions.Contains($FunctionName)) { + return $false + } + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) { + return $false + } + If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) { + return $false + } + + $parameterSetInfo = $parameterSetsInfo.ExportedCmdlets[$FunctionName] + foreach ($parameterInfo in $parameterSetInfo.Parameters.Values) + { + $category = (Get-ParameterAttribute -ParameterInfo $parameterInfo -AttributeName "CategoryAttribute").Categories + $invalideCategory = @('Query', 'Body') + if ($invalideCategory -contains $category) + { + return $false + } + } + + $customFiles = Get-ChildItem -Path custom -Filter "$cmdletName.*" + if ($customFiles.Length -ne 0) + { + return $false + } + + return $true +} + +function Get-MappedCmdletFromFunctionName() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [string] + $FunctionName + ) + + $cmdletName, $parameterSetName = $FunctionName.Split("_") + + return $cmdletName +} + +function Get-ParameterAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo, + [Parameter()] + [String] + $AttributeName + ) + return $ParameterInfo.Attributes | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletAttribute() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $CmdletInfo, + [Parameter()] + [String] + $AttributeName + ) + + return $CmdletInfo.ImplementingType.GetTypeInfo().GetCustomAttributes([System.object], $true) | Where-Object { $_.TypeId.Name -eq $AttributeName } +} + +function Get-CmdletDescription() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [String] + $CmdletName + ) + $helpInfo = Get-Help $CmdletName -Full + + $description = $helpInfo.Description.Text + if ($null -eq $description) + { + return "" + } + return $description +} + +# Test whether the parameter is from swagger http path +function Test-ParameterFromSwagger() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.ParameterMetadata] + $ParameterInfo + ) + $category = (Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "CategoryAttribute").Categories + $doNotExport = Get-ParameterAttribute -ParameterInfo $ParameterInfo -AttributeName "DoNotExportAttribute" + if ($null -ne $doNotExport) + { + return $false + } + + $valideCategory = @('Path') + if ($valideCategory -contains $category) + { + return $true + } + return $false +} + +function New-ExampleForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $category = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "CategoryAttribute").Categories + $sourceName = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "InfoAttribute").SerializedName + $name = $parameter.Name + $result += [ordered]@{ + name = "-$Name" + value = "[$category.$sourceName]" + } + } + + return $result +} + +function New-ParameterArrayInParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $parameters = $ParameterSetInfo.Parameters.Values | Where-Object { Test-ParameterFromSwagger $_ } + $result = @() + foreach ($parameter in $parameters) + { + $isMandatory = (Get-ParameterAttribute -parameterInfo $parameter -AttributeName "ParameterAttribute").Mandatory + $parameterName = $parameter.Name + $parameterType = $parameter.ParameterType.ToString().Split('.')[1] + if ($parameter.SwitchParameter) + { + $parameterSignature = "-$parameterName" + } + else + { + $parameterSignature = "-$parameterName <$parameterType>" + } + if ($parameterName -eq "SubscriptionId") + { + $isMandatory = $false + } + if (-not $isMandatory) + { + $parameterSignature = "[$parameterSignature]" + } + $result += $parameterSignature + } + + return $result +} + +function New-MetadataForParameterSet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Management.Automation.CommandInfo] + $ParameterSetInfo + ) + $httpAttribute = Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "HttpPathAttribute" + $httpPath = $httpAttribute.Path + $apiVersion = $httpAttribute.ApiVersion + $provider = [System.Text.RegularExpressions.Regex]::New("/providers/([\w+\.]+)/").Match($httpPath).Groups[1].Value + $resourcePath = "/" + $httpPath.Split("$provider/")[1] + $resourceType = [System.Text.RegularExpressions.Regex]::New("/([\w]+)/\{\w+\}").Matches($resourcePath) | ForEach-Object {$_.groups[1].Value} | Join-String -Separator "/" + $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name + $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description + [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + + return @{ + Path = $httpPath + Provider = $provider + ResourceType = $resourceType + ApiVersion = $apiVersion + CmdletName = $cmdletName + Description = $description + Example = $example + Signature = @{ + parameters = $signature + } + } +} + +function Merge-WithExistCmdletMetadata() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [System.Collections.Specialized.OrderedDictionary] + $ExistedCmdletInfo, + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $ExistedCmdletInfo.help.parameterSets += $ParameterSetMetadata.Signature + $ExistedCmdletInfo.examples += [ordered]@{ + description = $ParameterSetMetadata.Description + parameters = $ParameterSetMetadata.Example + } + + return $ExistedCmdletInfo +} + +function New-MetadataForCmdlet() +{ + [CmdletBinding()] + Param ( + [Parameter()] + [Hashtable] + $ParameterSetMetadata + ) + $cmdletName = $ParameterSetMetadata.CmdletName + $description = Get-CmdletDescription $cmdletName + $result = [ordered]@{ + name = $cmdletName + description = $description + path = $ParameterSetMetadata.Path + help = [ordered]@{ + learnMore = [ordered]@{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName/$cmdletName".ToLower() + } + parameterSets = @() + } + examples = @() + } + $result = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $result -ParameterSetMetadata $ParameterSetMetadata + return $result +} + +$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) } +$resourceTypes = @{} +foreach ($parameterSetName in $parameterSets) +{ + $cmdletInfo = $parameterSetsInfo.ExportedCommands[$parameterSetName] + $parameterSetMetadata = New-MetadataForParameterSet -ParameterSetInfo $cmdletInfo + $cmdletName = $parameterSetMetadata.CmdletName + if (-not ($moduleInfo.ExportedCommands.ContainsKey($cmdletName))) + { + continue + } + if ($resourceTypes.ContainsKey($parameterSetMetadata.ResourceType)) + { + $ExistedCmdletInfo = $resourceTypes[$parameterSetMetadata.ResourceType].commands | Where-Object { $_.name -eq $cmdletName } + if ($ExistedCmdletInfo) + { + $ExistedCmdletInfo = Merge-WithExistCmdletMetadata -ExistedCmdletInfo $ExistedCmdletInfo -ParameterSetMetadata $parameterSetMetadata + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType].commands += $cmdletInfo + } + } + else + { + $cmdletInfo = New-MetadataForCmdlet -ParameterSetMetadata $parameterSetMetadata + $resourceTypes[$parameterSetMetadata.ResourceType] = [ordered]@{ + resourceType = $parameterSetMetadata.ResourceType + apiVersion = $parameterSetMetadata.ApiVersion + learnMore = @{ + url = "https://learn.microsoft.com/powershell/module/$rootModuleName".ToLower() + } + commands = @($cmdletInfo) + provider = $parameterSetMetadata.Provider + } + } +} + +$UXFolder = 'UX' +if (Test-Path $UXFolder) +{ + Remove-Item -Path $UXFolder -Recurse +} +$null = New-Item -ItemType Directory -Path $UXFolder + +foreach ($resourceType in $resourceTypes.Keys) +{ + $resourceTypeFileName = $resourceType -replace "/", "-" + if ($resourceTypeFileName -eq "") + { + continue + } + $resourceTypeInfo = $resourceTypes[$resourceType] + $provider = $resourceTypeInfo.provider + $providerFolder = "$UXFolder/$provider" + if (-not (Test-Path $providerFolder)) + { + $null = New-Item -ItemType Directory -Path $providerFolder + } + $resourceTypeInfo.Remove("provider") + $resourceTypeInfo | ConvertTo-Json -Depth 10 | Out-File "$providerFolder/$resourceTypeFileName.json" +} \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/Module.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/Module.cs index 16a8f2bd651f..562c4e47e17a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/Module.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/Module.cs @@ -11,10 +11,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder using GetParameterDelegate = global::System.Func; using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using ArgumentCompleterDelegate = global::System.Func; + using GetTelemetryIdDelegate = global::System.Func; + using TelemetryDelegate = global::System.Action; using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using SanitizerDelegate = global::System.Action; + using GetTelemetryInfoDelegate = global::System.Func>; /// A class that contains the module-common code and data. public partial class Module @@ -30,6 +34,8 @@ public partial class Module /// the ISendAsync pipeline instance (when proxy is enabled) private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpPipeline _pipelineWithProxy; + public bool _useProxy = false; + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); /// Gets completion data for azure specific fields @@ -44,6 +50,12 @@ public partial class Module /// The delegate to call to get parameter data from a common module. public GetParameterDelegate GetParameterValue { get; set; } + /// The delegate to get the telemetry Id. + public GetTelemetryIdDelegate GetTelemetryId { get; set; } + + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } + /// Backing field for property. private static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module _instance; @@ -65,6 +77,12 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.EdgeOrder"; + /// The delegate to call in WriteObject to sanitize the output object. + public SanitizerDelegate SanitizeOutput { get; set; } + + /// The delegate for creating a telemetry. + public TelemetryDelegate Telemetry { get; set; } + /// The from the cmdlet /// The HttpPipeline for the request @@ -88,7 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpPipeline CreateP { Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpPipeline pipeline = null; BeforeCreatePipeline(invocationInfo, ref pipeline); - pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone(); AfterCreatePipeline(invocationInfo, ref pipeline); pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); @@ -115,7 +133,7 @@ public void Init() /// Creates the module instance. private Module() { - /// constructor + // constructor ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder(); _handler.Proxy = _webProxy; _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); @@ -127,12 +145,24 @@ private Module() /// True if the proxy should use default credentials public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) { + _useProxy = proxy != null; + if (proxy == null) + { + return; + } // set the proxy configuration _webProxy.Address = proxy; _webProxy.BypassProxyOnLocal = false; - _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); - _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; - _handler.UseProxy = proxy != null; + if (proxyUseDefaultCredentials) + { + _webProxy.Credentials = null; + _webProxy.UseDefaultCredentials = true; + } + else + { + _webProxy.UseDefaultCredentials = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + } } /// Called to dispatch events to the common module listener diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/EdgeOrder.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/EdgeOrder.cs index f5d8135275a0..4179a8cb9eda 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/EdgeOrder.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/EdgeOrder.cs @@ -433,6 +433,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -723,6 +724,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -998,6 +1000,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -1279,6 +1282,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -3856,6 +3860,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -4153,6 +4158,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -4456,6 +4462,7 @@ public partial class EdgeOrder // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.PowerShell.cs index dd13b7b59a0d..1427869dd48c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Any /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Any /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -116,7 +118,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAny Deseriali /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.TypeConverter.cs index 025b5bdce4ae..e4b8e2602543 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class AnyTypeConverter : global::System.Management.Automation.PST { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.json.cs index bb3875af13af..1a97e1321a11 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Any.json.cs @@ -20,7 +20,7 @@ public partial class Any partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Any /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Any /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs index 31ed89097c1d..6cbe1d2e9868 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject conte /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorAdditionalInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs index ef4901d2ccdb..31ea2b647aaa 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ErrorAdditionalInfoTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs index 6acaf3d451e7..b800685d569e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorAdditionalInfo.json.cs @@ -20,7 +20,7 @@ public partial class ErrorAdditionalInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ErrorAdditionalInfo /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs index b6c7d1e643fb..6b21fa662e70 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ErrorDetail /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ErrorDetail /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -156,7 +158,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs index e5ea25e523df..fb2ae00517d5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ErrorDetailTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs index d8e249ebb367..fb974ad92458 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorDetail.json.cs @@ -20,7 +20,7 @@ public partial class ErrorDetail partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ErrorDetail /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ErrorDetail /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs index 0a45c8715412..b9c0992d7e65 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.PowerShell.cs @@ -34,7 +34,8 @@ public partial class ErrorResponse /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class ErrorResponse /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -167,7 +169,7 @@ internal ErrorResponse(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs index 853317bdb15f..9b3c77b684d8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ErrorResponseTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs index 3529fe471ef0..91c565adf9c6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ErrorResponse.json.cs @@ -23,7 +23,7 @@ public partial class ErrorResponse partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -33,7 +33,8 @@ public partial class ErrorResponse /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -45,7 +46,8 @@ public partial class ErrorResponse /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs index 30cdb638baea..150c7df9a743 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.PowerShell.cs @@ -33,7 +33,8 @@ public partial class Operation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class Operation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperati /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs index 6f2446da2589..8aca677f598b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class OperationTypeConverter : global::System.Management.Automati { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.json.cs index 5091d2987a7f..3845a58a20a6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Operation.json.cs @@ -22,7 +22,7 @@ public partial class Operation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class Operation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class Operation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs index 400aa7797497..63f0bd12aca1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OperationDisplay /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OperationDisplay /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperati /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs index 87c4c66d97a1..e15aa6d87e08 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OperationDisplayTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs index f9ee31f02d1f..05bec667fc46 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationDisplay.json.cs @@ -20,7 +20,7 @@ public partial class OperationDisplay partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OperationDisplay /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OperationDisplay /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs index 2075f5e87e70..58369df97218 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.PowerShell.cs @@ -34,7 +34,8 @@ public partial class OperationListResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class OperationListResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperati /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs index 3b1823766213..e49d220efe5a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OperationListResultTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.json.cs index ecb2db213a5c..61133ee732df 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/OperationListResult.json.cs @@ -23,7 +23,7 @@ public partial class OperationListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -33,7 +33,8 @@ public partial class OperationListResult /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -45,7 +46,8 @@ public partial class OperationListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs index 1777b0807ae5..e139367470d2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class ProxyResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class ProxyResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IProxyRe /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs index 9b07cbb67763..67246d688ceb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProxyResourceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.cs index 1425b136909e..790433e262dd 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.cs @@ -55,7 +55,7 @@ public ProxyResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.json.cs index a76a9eb28d5a..fee1b6c04dee 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/ProxyResource.json.cs @@ -22,7 +22,7 @@ public partial class ProxyResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class ProxyResource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class ProxyResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs index 1b8deab6d2ef..65126cd7f09c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class Resource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class Resource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IResourc /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs index 42f7f5eebf5d..d7ab41224f4e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class ResourceTypeConverter : global::System.Management.Automatio { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.json.cs index 26af5f6f4d60..2742e51ee1d2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/Resource.json.cs @@ -22,7 +22,7 @@ public partial class Resource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class Resource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class Resource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs index cdc2135618d6..6e9ee5513689 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs @@ -31,7 +31,8 @@ public partial class SystemData /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class SystemData /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ISystemD /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs index 2cc77ec4bd55..3a37de02983b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.json.cs index ee0595f5eb5d..63dec74f0414 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/SystemData.json.cs @@ -20,7 +20,7 @@ public partial class SystemData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SystemData /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class SystemData /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs index fddc0112e369..55384a49bf17 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class TrackedResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class TrackedResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITracked /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs index f428b07e56ee..f893f46b1901 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class TrackedResourceTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.cs index ab899421af62..ae6ce5188a97 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.cs @@ -69,7 +69,7 @@ public TrackedResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.json.cs index ea2a782b62b2..e808a33e7926 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResource.json.cs @@ -22,7 +22,7 @@ public partial class TrackedResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class TrackedResource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class TrackedResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs index b982e66a6d0f..6f324139b4aa 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs @@ -31,7 +31,8 @@ public partial class TrackedResourceTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TrackedResourceTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITracked /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs index e76f3db56e90..3097e2596cec 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class TrackedResourceTagsTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs index ad499c20e857..76828103cccb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs @@ -20,7 +20,7 @@ public partial class TrackedResourceTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TrackedResourceTags /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class TrackedResourceTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.PowerShell.cs index 4811b8c593e5..acda0f73af05 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -180,7 +182,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.TypeConverter.cs index e2a3a60766e8..93d4d5c68560 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressDetailsTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.json.cs index 9b854d356286..fa73ef0731ee 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressDetails.json.cs @@ -20,7 +20,7 @@ public partial class AddressDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.PowerShell.cs index 6d6f9e846fe2..3e140e11a7c5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,7 +142,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.TypeConverter.cs index 5774d6accdef..b2bbddb20e19 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressPropertiesTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.json.cs index 9763f1494664..aedf3e8c8d9a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressProperties.json.cs @@ -20,7 +20,7 @@ public partial class AddressProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.PowerShell.cs index 8fe9162f2cb5..fa4aebb495d3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -196,7 +198,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.TypeConverter.cs index b42d9bc07371..b853a96b7cfc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressResourceTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.cs index 75dd0a287700..e918407c9023 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.cs @@ -97,7 +97,7 @@ public AddressResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.json.cs index 857387212a3f..66932fa81bbb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResource.json.cs @@ -20,7 +20,7 @@ public partial class AddressResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressResource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.PowerShell.cs index 719c34ee2fa2..53690a15a2d8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.TypeConverter.cs index 558d39d3850c..ccf57b97463a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressResourceListTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.json.cs index 91cc6ca65481..1ac024dc3dd0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressResourceList.json.cs @@ -20,7 +20,7 @@ public partial class AddressResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressResourceList /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressResourceList /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.PowerShell.cs index 6f34f4371907..ffbcaf1dcc95 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressUpdateParameter /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressUpdateParameter /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -148,7 +150,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.TypeConverter.cs index 70ef9602932f..89afaad5338b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressUpdateParameterTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.json.cs index 1fc30a0a8d9d..c2b4a8fca571 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameter.json.cs @@ -20,7 +20,7 @@ public partial class AddressUpdateParameter partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressUpdateParameter /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressUpdateParameter /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.PowerShell.cs index f2d669a50e8d..9b447757752a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.PowerShell.cs @@ -34,7 +34,8 @@ public partial class AddressUpdateParameterTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class AddressUpdateParameterTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.TypeConverter.cs index 8256aec57c8c..e736207b800d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressUpdateParameterTagsTypeConverter : global::System.Ma { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.json.cs index a3ec8a6b78a9..2931f885fbc2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateParameterTags.json.cs @@ -23,7 +23,7 @@ public partial class AddressUpdateParameterTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -33,7 +33,8 @@ public partial class AddressUpdateParameterTags /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -45,7 +46,8 @@ public partial class AddressUpdateParameterTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.PowerShell.cs index 1a878c90d7f0..b7bad1523215 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AddressUpdateProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AddressUpdateProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.TypeConverter.cs index 5403944022c1..49d8f39d03c6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AddressUpdatePropertiesTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.json.cs index bfc836bded34..e000b25eef0d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AddressUpdateProperties.json.cs @@ -20,7 +20,7 @@ public partial class AddressUpdateProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AddressUpdateProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AddressUpdateProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.PowerShell.cs index 15a76c3c28e6..d52abc1ecea5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.PowerShell.cs @@ -31,7 +31,8 @@ public partial class AvailabilityInformation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class AvailabilityInformation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,7 +142,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IA /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAvailabilityInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.TypeConverter.cs index 5bbd51765082..c251e8faf3b3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AvailabilityInformationTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.json.cs index b7ae95913cf1..dac3c3fc1a23 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/AvailabilityInformation.json.cs @@ -20,7 +20,7 @@ public partial class AvailabilityInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AvailabilityInformation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class AvailabilityInformation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.PowerShell.cs index c6fbd28f8ac6..80cfcc42f885 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.PowerShell.cs @@ -31,7 +31,8 @@ public partial class BasicInformation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BasicInformation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -252,7 +254,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IB /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBasicInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.TypeConverter.cs index 3e9a0c85cf3c..313afe04e2db 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class BasicInformationTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.json.cs index 0ba89fd187a4..4544aaecf760 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BasicInformation.json.cs @@ -20,7 +20,7 @@ public partial class BasicInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class BasicInformation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class BasicInformation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.PowerShell.cs index 5a2e92354dac..bc6f95ede4e3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class BillingMeterDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class BillingMeterDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -172,7 +174,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IB /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IBillingMeterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.TypeConverter.cs index d823dedbce1c..4ba850f665b2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class BillingMeterDetailsTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.json.cs index a6509a420ed1..3492904b1088 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/BillingMeterDetails.json.cs @@ -20,7 +20,7 @@ public partial class BillingMeterDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class BillingMeterDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class BillingMeterDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.PowerShell.cs index 914d628a6817..7216719055a2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.PowerShell.cs @@ -31,7 +31,8 @@ public partial class CancellationReason /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CancellationReason /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.TypeConverter.cs index ceb685881e06..9612a534802b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class CancellationReasonTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.json.cs index f8df2ea3255a..0becf05e5bba 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CancellationReason.json.cs @@ -20,7 +20,7 @@ public partial class CancellationReason partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CancellationReason /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CancellationReason /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.PowerShell.cs index b08cd3c177b4..4b65260a84e0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class CommonProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CommonProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -260,7 +262,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICommonProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.TypeConverter.cs index 2454e7f80b19..30c38bdaeecb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class CommonPropertiesTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.cs index 7e4fd94f8c9a..840d15639440 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.cs @@ -158,7 +158,7 @@ public CommonProperties() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.json.cs index e9a2087f1ac0..7515b73f1636 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CommonProperties.json.cs @@ -20,7 +20,7 @@ public partial class CommonProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CommonProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CommonProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.PowerShell.cs index e0bd366f5030..f29e6a9b7a5c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Configuration /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Configuration /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -340,7 +342,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.TypeConverter.cs index 5bfc313f231b..49ecc39d1f81 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ConfigurationTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.json.cs index a25dfd22571c..7a2e19db1a7a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configuration.json.cs @@ -20,7 +20,7 @@ public partial class Configuration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Configuration /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Configuration /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.PowerShell.cs index a7375b965d6c..4aed105a9b79 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ConfigurationFilters /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ConfigurationFilters /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFilters FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.TypeConverter.cs index 869ab39d5078..eb037f34b9c3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ConfigurationFiltersTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.json.cs index e2198d3d410c..84d68d358206 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationFilters.json.cs @@ -20,7 +20,7 @@ public partial class ConfigurationFilters partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ConfigurationFilters /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ConfigurationFilters /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.PowerShell.cs index 4a87d1630d0c..f940c00c76d5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ConfigurationProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ConfigurationProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -332,7 +334,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.TypeConverter.cs index 321a84314a37..1277913a8fc5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ConfigurationPropertiesTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.cs index fc280193ece6..44ce6034e15b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.cs @@ -224,7 +224,7 @@ public ConfigurationProperties() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.json.cs index d4505e053afc..e5dc42345f7e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationProperties.json.cs @@ -20,7 +20,7 @@ public partial class ConfigurationProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ConfigurationProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ConfigurationProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.PowerShell.cs index 9081605fce3c..16070da2bc91 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Configurations /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Configurations /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.TypeConverter.cs index e58dbf47d882..760e12c8d3b6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ConfigurationsTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.json.cs index 685d7ccbf94e..e4d9b06b6069 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Configurations.json.cs @@ -20,7 +20,7 @@ public partial class Configurations partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Configurations /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Configurations /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.PowerShell.cs index 09c9405dd8b3..a48b8d73d1e0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ConfigurationsRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ConfigurationsRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationsRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.TypeConverter.cs index 53748109403a..e9643451f871 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ConfigurationsRequestTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.json.cs index 7e04e083d354..087f583a2b06 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ConfigurationsRequest.json.cs @@ -20,7 +20,7 @@ public partial class ConfigurationsRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ConfigurationsRequest /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ConfigurationsRequest /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.PowerShell.cs index 541cc90c67db..7cab39d947c1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ContactDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ContactDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -156,7 +158,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.TypeConverter.cs index 0b67316b7eb1..07e59bbe44fb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ContactDetailsTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.json.cs index 77e84fe603fa..2302cc56ace9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ContactDetails.json.cs @@ -20,7 +20,7 @@ public partial class ContactDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ContactDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ContactDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.PowerShell.cs index fc2250fa279a..b677f7672809 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.PowerShell.cs @@ -31,7 +31,8 @@ public partial class CostInformation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CostInformation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICostInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.TypeConverter.cs index 1e1c26195f1f..f09f076c7150 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class CostInformationTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.json.cs index 67f9599a36d9..aa28d7ad834a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CostInformation.json.cs @@ -20,7 +20,7 @@ public partial class CostInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CostInformation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CostInformation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.PowerShell.cs index bb4bfdd8513d..9e1e900f0a64 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.PowerShell.cs @@ -34,7 +34,8 @@ public partial class CustomerSubscriptionDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class CustomerSubscriptionDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,7 +147,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.TypeConverter.cs index c5c7e2fa1095..09a1c6b0842a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class CustomerSubscriptionDetailsTypeConverter : global::System.M { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.json.cs index 8734622abe1f..a06ba2c8c3c2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionDetails.json.cs @@ -23,7 +23,7 @@ public partial class CustomerSubscriptionDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -33,7 +33,8 @@ public partial class CustomerSubscriptionDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -45,7 +46,8 @@ public partial class CustomerSubscriptionDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.PowerShell.cs index 5c0587bd7dcf..9365fd4ae2e3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.PowerShell.cs @@ -31,7 +31,8 @@ public partial class CustomerSubscriptionRegisteredFeatures /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class CustomerSubscriptionRegisteredFeatures /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,7 +137,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IC /// string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionRegisteredFeatures FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.TypeConverter.cs index f001f8011afc..68083c869c8a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class CustomerSubscriptionRegisteredFeaturesTypeConverter : globa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,8 +102,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.json.cs index 09a7b399f86b..7acb8f22942e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/CustomerSubscriptionRegisteredFeatures.json.cs @@ -20,7 +20,7 @@ public partial class CustomerSubscriptionRegisteredFeatures partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CustomerSubscriptionRegisteredFeatures /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class CustomerSubscriptionRegisteredFeatures /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.PowerShell.cs index 08af19923e88..9ac18326b86d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Description /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Description /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -164,7 +166,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ID /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IDescription FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.TypeConverter.cs index 7fe59b19d1f0..fbb4af2f1a0e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class DescriptionTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.json.cs index ee41d9a26a2a..20074e463e00 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Description.json.cs @@ -20,7 +20,7 @@ public partial class Description partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Description /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Description /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.PowerShell.cs index 08358828844e..df5f0a81c1bc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class DeviceDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DeviceDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,7 +142,7 @@ internal DeviceDetails(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IDeviceDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.TypeConverter.cs index d6cfa9f36cf1..36900bb0caba 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class DeviceDetailsTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.json.cs index c53dae9e5b92..d40eb1564f0a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DeviceDetails.json.cs @@ -20,7 +20,7 @@ public partial class DeviceDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DeviceDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DeviceDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.PowerShell.cs index aea5aebc2c68..4ffbfbb1ac4a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Dimensions /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Dimensions /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -172,7 +174,7 @@ internal Dimensions(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IDimensions FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.TypeConverter.cs index 5a8fa4edf84e..bc8c60a6ecaa 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class DimensionsTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.json.cs index d7a18031918a..c93f2ea82a65 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Dimensions.json.cs @@ -20,7 +20,7 @@ public partial class Dimensions partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Dimensions /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Dimensions /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.PowerShell.cs index 07306eb62dcc..7e5b551dda1b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.PowerShell.cs @@ -31,7 +31,8 @@ public partial class DisplayInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class DisplayInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ internal DisplayInfo(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IDisplayInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.TypeConverter.cs index d3cbba229dda..6ea8d77e06b2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class DisplayInfoTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.json.cs index a2618ad61751..4009518077af 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/DisplayInfo.json.cs @@ -20,7 +20,7 @@ public partial class DisplayInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DisplayInfo /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class DisplayInfo /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.PowerShell.cs index 417e839b69df..0027f40fb296 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.PowerShell.cs @@ -31,7 +31,8 @@ public partial class EncryptionPreferences /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class EncryptionPreferences /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal EncryptionPreferences(global::System.Management.Automation.PSObject con /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IEncryptionPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.TypeConverter.cs index 84e06dd859f8..08889de6b776 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class EncryptionPreferencesTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.json.cs index 66a915520100..46e2d6c8b6bd 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/EncryptionPreferences.json.cs @@ -20,7 +20,7 @@ public partial class EncryptionPreferences partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class EncryptionPreferences /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class EncryptionPreferences /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.PowerShell.cs index c5d361b6b63e..7c6a26941ba9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.PowerShell.cs @@ -31,7 +31,8 @@ public partial class FilterableProperty /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class FilterableProperty /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,7 +134,7 @@ internal FilterableProperty(global::System.Management.Automation.PSObject conten /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IFilterableProperty FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.TypeConverter.cs index e7403c614df9..18f56a5b1bd9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class FilterablePropertyTypeConverter : global::System.Management { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.json.cs index 96ea16840a60..507ec326b456 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/FilterableProperty.json.cs @@ -20,7 +20,7 @@ public partial class FilterableProperty partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class FilterableProperty /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class FilterableProperty /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.PowerShell.cs index 4aae0d4d0616..1ea0edf9d3ce 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ForwardShippingDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ForwardShippingDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -148,7 +150,7 @@ internal ForwardShippingDetails(global::System.Management.Automation.PSObject co /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IForwardShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.TypeConverter.cs index a3fdc4df8a03..c65f7ba79465 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ForwardShippingDetailsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.json.cs index 286bbcdf3ca1..08236dc06552 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ForwardShippingDetails.json.cs @@ -20,7 +20,7 @@ public partial class ForwardShippingDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ForwardShippingDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ForwardShippingDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.PowerShell.cs index f89017110d89..afcc0575513b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.PowerShell.cs @@ -31,7 +31,8 @@ public partial class HierarchyInformation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class HierarchyInformation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IH /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IHierarchyInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.TypeConverter.cs index cc790c7843c9..1f8cd89dfdbc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class HierarchyInformationTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.json.cs index 8f6c07134c55..bcf9f9bd3e10 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/HierarchyInformation.json.cs @@ -20,7 +20,7 @@ public partial class HierarchyInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class HierarchyInformation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class HierarchyInformation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.PowerShell.cs index 1cc0e61f95f7..e3b20808cd4d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ImageInformation /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ImageInformation /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.II /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IImageInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.TypeConverter.cs index 4acd3c68e6de..d4471143e82d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ImageInformationTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.json.cs index c404570b9949..2df6dff07499 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ImageInformation.json.cs @@ -20,7 +20,7 @@ public partial class ImageInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ImageInformation /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ImageInformation /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.PowerShell.cs index 462151272012..e91d16444c72 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Link /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Link /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IL /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ILink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.TypeConverter.cs index e8aad88589cb..e259dff84ffc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class LinkTypeConverter : global::System.Management.Automation.PS { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.json.cs index fcc5b1d9d0cc..c1f6c6530565 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Link.json.cs @@ -20,7 +20,7 @@ public partial class Link partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Link /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Link /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.PowerShell.cs index 513b2f1fef9b..2e0fb33509f5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ManagementResourcePreferences /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ManagementResourcePreferences /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IM /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IManagementResourcePreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.TypeConverter.cs index 2b2546a1786a..b7cb4ac69911 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ManagementResourcePreferencesTypeConverter : global::System { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.json.cs index 9b97841f4394..96fb8f72352a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ManagementResourcePreferences.json.cs @@ -20,7 +20,7 @@ public partial class ManagementResourcePreferences partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ManagementResourcePreferences /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ManagementResourcePreferences /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.PowerShell.cs index 97bd4b467946..fec07c5c82d7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class MeterDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class MeterDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IM /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IMeterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.TypeConverter.cs index a21eec93077a..b3c261dc6e92 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class MeterDetailsTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.json.cs index c0d3caca6729..0cdaba269830 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/MeterDetails.json.cs @@ -20,7 +20,7 @@ public partial class MeterDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class MeterDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class MeterDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.PowerShell.cs index 642fbdc4974d..c64f0be77d70 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.PowerShell.cs @@ -31,7 +31,8 @@ public partial class NotificationPreference /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class NotificationPreference /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IN /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.INotificationPreference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.TypeConverter.cs index a83f9e2ab7c4..86ae9a1e830e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class NotificationPreferenceTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.json.cs index b58b58d3ea02..c829309dda2e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/NotificationPreference.json.cs @@ -20,7 +20,7 @@ public partial class NotificationPreference partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class NotificationPreference /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class NotificationPreference /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.PowerShell.cs index 2a9d78a242cc..ce159ac0dbdd 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.TypeConverter.cs index 9d369d36ec20..77a96508f933 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemDetailsTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.json.cs index c82bcb0f1335..53d49ec013a0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemDetails.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.PowerShell.cs index 79018abe1164..26a61d6a271e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.TypeConverter.cs index 19adf471446d..94bb4676d06d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemPropertiesTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.json.cs index 7977c8767fc2..de7e31e5ac4a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemProperties.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.PowerShell.cs index e7f3e9b0f756..7a2966002ca9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.TypeConverter.cs index 11b5010c050f..571a7495fe31 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemResourceTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.cs index ba493394e95f..f2946c230517 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.cs @@ -136,7 +136,7 @@ public OrderItemResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.json.cs index e57af5beb615..80c67c149fff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResource.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemResource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.PowerShell.cs index 667065ed3112..e97f9482d5a0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.TypeConverter.cs index 2351397b6e46..0bc9f8fe32ed 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemResourceListTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.json.cs index 881b4eecda60..b0cb3dd91f68 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemResourceList.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemResourceList /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemResourceList /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.PowerShell.cs index 7b865dd6a6e5..620c45a38ecc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemUpdateParameter /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemUpdateParameter /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.TypeConverter.cs index 03e823305423..e43290bdcd15 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemUpdateParameterTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.json.cs index af0676ed1ef5..e263fec73d2c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameter.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemUpdateParameter partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemUpdateParameter /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemUpdateParameter /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.PowerShell.cs index 58eecffaa054..4aceca5f4e38 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.PowerShell.cs @@ -34,7 +34,8 @@ public partial class OrderItemUpdateParameterTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -46,7 +47,8 @@ public partial class OrderItemUpdateParameterTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -87,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.TypeConverter.cs index ff9ca9b1f27e..bbbf5aef94f9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemUpdateParameterTagsTypeConverter : global::System. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.json.cs index 837277db8cac..79e8f02c205c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateParameterTags.json.cs @@ -23,7 +23,7 @@ public partial class OrderItemUpdateParameterTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -33,7 +33,8 @@ public partial class OrderItemUpdateParameterTags /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -45,7 +46,8 @@ public partial class OrderItemUpdateParameterTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.PowerShell.cs index 16e1a6386a82..39e9fdba4757 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderItemUpdateProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderItemUpdateProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.TypeConverter.cs index 218b5773575a..325e2eb298c8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderItemUpdatePropertiesTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.json.cs index 20fa57a466b4..8066b99d653f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderItemUpdateProperties.json.cs @@ -20,7 +20,7 @@ public partial class OrderItemUpdateProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderItemUpdateProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderItemUpdateProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.PowerShell.cs index d420d520e0cd..d6ee82b054c4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.TypeConverter.cs index 555412a20aed..502fba328be2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderPropertiesTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.json.cs index ccc67ad66864..ec593d8d9d2a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderProperties.json.cs @@ -20,7 +20,7 @@ public partial class OrderProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.PowerShell.cs index 6e492f9ee232..f492e01dc830 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.PowerShell.cs @@ -33,7 +33,8 @@ public partial class OrderResource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -45,7 +46,8 @@ public partial class OrderResource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.TypeConverter.cs index adf5628d0fc0..924e827cb02a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderResourceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.cs index 3166aebeb166..d4e97e2bfa5b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.cs @@ -120,7 +120,7 @@ public OrderResource() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.json.cs index 1fe9a06eed74..76fd30b2f123 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResource.json.cs @@ -22,7 +22,7 @@ public partial class OrderResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -32,7 +32,8 @@ public partial class OrderResource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -44,7 +45,8 @@ public partial class OrderResource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.PowerShell.cs index b81e15c71197..20f75e7c23e7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.PowerShell.cs @@ -31,7 +31,8 @@ public partial class OrderResourceList /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class OrderResourceList /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IO /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.TypeConverter.cs index 11720e1b9dac..4fe465de0e2d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class OrderResourceListTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.json.cs index cd5ee49143fc..c56164b860b0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/OrderResourceList.json.cs @@ -20,7 +20,7 @@ public partial class OrderResourceList partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OrderResourceList /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class OrderResourceList /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.PowerShell.cs index 54dee7e0d518..68a9ef1e1828 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Pav2MeterDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Pav2MeterDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPav2MeterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.TypeConverter.cs index 0db7d9d2f337..39c8b946cf91 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class Pav2MeterDetailsTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.cs index dc02d2f95718..662a5d56528a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.cs @@ -57,7 +57,7 @@ public Pav2MeterDetails() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.json.cs index cb1b2ca2b7e0..c3b5680a96f7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Pav2MeterDetails.json.cs @@ -20,7 +20,7 @@ public partial class Pav2MeterDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Pav2MeterDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Pav2MeterDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.PowerShell.cs index 9e35cbeb14c9..5d5a33193bdb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Preferences /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Preferences /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.TypeConverter.cs index 70343142f39a..97769c561a16 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class PreferencesTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.json.cs index cef423f5037e..4d03d0620bf5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Preferences.json.cs @@ -20,7 +20,7 @@ public partial class Preferences partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Preferences /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Preferences /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.PowerShell.cs index a997e4052519..3ac78d5a09bc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Product /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Product /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProduct FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.TypeConverter.cs index 3873382730ee..141a1ba36e73 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.TypeConverter.cs @@ -14,20 +14,19 @@ public partial class ProductTypeConverter : global::System.Management.Automation { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.json.cs index 27e48e4400e7..a7661b6f9fbf 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Product.json.cs @@ -20,7 +20,7 @@ public partial class Product partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Product /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Product /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.PowerShell.cs index 5dd79087ba85..3422a5f36a7b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.TypeConverter.cs index b19eb2e2a8f3..1c4eb4955ff0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductDetailsTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.json.cs index 532ab0bfd6de..016780ab4950 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductDetails.json.cs @@ -20,7 +20,7 @@ public partial class ProductDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.PowerShell.cs index 507bfe994a11..45e9369b8b79 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamilies /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamilies /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilies FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.TypeConverter.cs index ebe5c4da7ec7..a177e5715534 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamiliesTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.json.cs index 040476162b08..7c95d3e5465f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilies.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamilies partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamilies /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamilies /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.PowerShell.cs index 87efda45fbbb..f087a5126cb6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamiliesMetadata /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamiliesMetadata /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.TypeConverter.cs index 0d13116e043f..bd86bfcd53b4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamiliesMetadataTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.json.cs index 4df9f1af867e..54a224c17df2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadata.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamiliesMetadata partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamiliesMetadata /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamiliesMetadata /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.PowerShell.cs index 35cb9c0eb919..31a93d25a48e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamiliesMetadataDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamiliesMetadataDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -84,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadataDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.TypeConverter.cs index 9c67a22fd458..2ed7393706fc 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamiliesMetadataDetailsTypeConverter : global::Syste { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.json.cs index 50d2b0252142..c409c7c1c278 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesMetadataDetails.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamiliesMetadataDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamiliesMetadataDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamiliesMetadataDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.PowerShell.cs index 1d67d6891507..b7cafa3f7e5d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamiliesRequest /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamiliesRequest /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.TypeConverter.cs index c7f721ee2c63..69d4898a5892 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamiliesRequestTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.json.cs index 0f07a1b2dfcc..22e627f93cb7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequest.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamiliesRequest partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamiliesRequest /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamiliesRequest /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.PowerShell.cs index 8b969c195bdd..336b8a9ff55a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamiliesRequestFilterableProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamiliesRequestFilterableProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -85,7 +87,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequestFilterableProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.TypeConverter.cs index 89ccd469319e..e57251ae6586 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.TypeConverter.cs @@ -15,20 +15,20 @@ public partial class ProductFamiliesRequestFilterablePropertiesTypeConverter : g { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -77,19 +77,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -101,8 +102,8 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.json.cs index 2b1f16777154..153719ef9dd4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamiliesRequestFilterableProperties.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamiliesRequestFilterableProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamiliesRequestFilterableProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamiliesRequestFilterableProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.PowerShell.cs index c76fe9fb2b1d..816794ca514e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamily /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamily /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamily FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.TypeConverter.cs index a05e7007782b..17c6460fd1cf 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamilyTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.json.cs index 1650cdae7cc7..54cabb444069 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamily.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamily partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamily /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamily /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.PowerShell.cs index a8ddb7c8bc0a..7d50fe54d41e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductFamilyProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductFamilyProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilyProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.TypeConverter.cs index a998e55a1596..bd2f4a9c2d22 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductFamilyPropertiesTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.cs index 999797e59838..886a5b97ec37 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.cs @@ -172,7 +172,7 @@ public ProductFamilyProperties() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.json.cs index 3302d6d59c29..c5e609395847 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductFamilyProperties.json.cs @@ -20,7 +20,7 @@ public partial class ProductFamilyProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductFamilyProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductFamilyProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.PowerShell.cs index 64e73fc8ae73..7cce14f2e937 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductLine /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductLine /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductLine FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.TypeConverter.cs index 0a882ac0708f..6427d865d78f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductLineTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.json.cs index 0bf36007f450..eeee2daed709 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLine.json.cs @@ -20,7 +20,7 @@ public partial class ProductLine partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductLine /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductLine /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.PowerShell.cs index ee392b5f5fe9..86e86a3452f0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductLineProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductLineProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductLineProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.TypeConverter.cs index d12700690753..cb875384e74e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductLinePropertiesTypeConverter : global::System.Managem { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.cs index 0ab0c944bd9e..6f47d01c079e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.cs @@ -165,7 +165,7 @@ public ProductLineProperties() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.json.cs index 9f54853ed50e..2d6caaea257c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductLineProperties.json.cs @@ -20,7 +20,7 @@ public partial class ProductLineProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductLineProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductLineProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.PowerShell.cs index 91192fe93a46..8e878de6f90b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ProductProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ProductProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.TypeConverter.cs index 4178aeba5402..4f8fe30a9ad1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ProductPropertiesTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.cs index f004c17c54e8..f92f4a537132 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.cs @@ -165,7 +165,7 @@ public ProductProperties() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.json.cs index 07ea0efb87d4..ac1242edf714 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ProductProperties.json.cs @@ -20,7 +20,7 @@ public partial class ProductProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ProductProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ProductProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.PowerShell.cs index 84c888d24301..f5e6dfb33123 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class PurchaseMeterDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class PurchaseMeterDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IP /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPurchaseMeterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.TypeConverter.cs index 28d8615ed7d3..bdf1e3d2a296 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class PurchaseMeterDetailsTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.cs index b106900ccf9d..d157fb651306 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.cs @@ -77,7 +77,7 @@ public PurchaseMeterDetails() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener eventListener) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.json.cs index 60f7fd689ebc..1d6dd604a2a1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/PurchaseMeterDetails.json.cs @@ -20,7 +20,7 @@ public partial class PurchaseMeterDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class PurchaseMeterDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class PurchaseMeterDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.PowerShell.cs index 937592a4d106..07a428fd4c62 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ResourceIdentity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ResourceIdentity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IR /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IResourceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.TypeConverter.cs index d12134935685..02871d38a5d5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ResourceIdentityTypeConverter : global::System.Management.A { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.json.cs index 721c3a1b268f..9194aca21ace 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceIdentity.json.cs @@ -20,7 +20,7 @@ public partial class ResourceIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ResourceIdentity /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ResourceIdentity /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.PowerShell.cs index 8c6d888ab67e..8c48a79837d8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ResourceProviderDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ResourceProviderDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IR /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IResourceProviderDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.TypeConverter.cs index ba287ce556a8..e4a80d3a0348 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ResourceProviderDetailsTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.json.cs index da08638df85b..ac2c535ccc99 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ResourceProviderDetails.json.cs @@ -20,7 +20,7 @@ public partial class ResourceProviderDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ResourceProviderDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ResourceProviderDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.PowerShell.cs index 9140fe5f9d8a..96f009537a18 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ReturnOrderItemDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ReturnOrderItemDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IR /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.TypeConverter.cs index a9437c014bef..74c4d3c40bf9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ReturnOrderItemDetailsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.json.cs index a25b9640469a..acfedbf7ca8d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReturnOrderItemDetails.json.cs @@ -20,7 +20,7 @@ public partial class ReturnOrderItemDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ReturnOrderItemDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ReturnOrderItemDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.PowerShell.cs index d1a1ee34e3a7..26450e6c8f92 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ReverseShippingDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ReverseShippingDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IR /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReverseShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.TypeConverter.cs index 5ecef9d786b6..443361e9020d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ReverseShippingDetailsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.json.cs index 3ac4d2096706..a427eb5554ff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ReverseShippingDetails.json.cs @@ -20,7 +20,7 @@ public partial class ReverseShippingDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ReverseShippingDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ReverseShippingDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.PowerShell.cs index 6e958a34a779..572ff8aafbc3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ShippingAddress /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ShippingAddress /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IS /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.TypeConverter.cs index 0e383ac26562..5d9f52d5ca0e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ShippingAddressTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.json.cs index ea3af24040b9..c6f6b52164b6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingAddress.json.cs @@ -20,7 +20,7 @@ public partial class ShippingAddress partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ShippingAddress /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ShippingAddress /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.PowerShell.cs index a516ce0a857a..ef2900b95e5b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class ShippingDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class ShippingDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IS /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.TypeConverter.cs index 7a695e40b05f..1a6ab63c4314 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class ShippingDetailsTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.json.cs index 56e0d1af235a..25ddc4e3b88e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/ShippingDetails.json.cs @@ -20,7 +20,7 @@ public partial class ShippingDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ShippingDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class ShippingDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.PowerShell.cs index d1a0259f19a9..b04ba10eab2a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.PowerShell.cs @@ -31,7 +31,8 @@ public partial class Specification /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class Specification /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IS /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ISpecification FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.TypeConverter.cs index e666e4e5d2ad..c076b122947a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class SpecificationTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.json.cs index c5be0d12cb4c..a5e79fe8067b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/Specification.json.cs @@ -20,7 +20,7 @@ public partial class Specification partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Specification /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class Specification /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.PowerShell.cs index 4ac89f7b8fce..8f730cf3f895 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.PowerShell.cs @@ -31,7 +31,8 @@ public partial class StageDetails /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class StageDetails /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IS /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IStageDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.TypeConverter.cs index e740040dcd67..06faac19add9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class StageDetailsTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.json.cs index f71326386bcd..37c7b6f0af32 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/StageDetails.json.cs @@ -20,7 +20,7 @@ public partial class StageDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class StageDetails /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class StageDetails /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.PowerShell.cs index 9475fcbf094c..4b802b406f81 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.PowerShell.cs @@ -31,7 +31,8 @@ public partial class TransportPreferences /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -43,7 +44,8 @@ public partial class TransportPreferences /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -82,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IT /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ITransportPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.TypeConverter.cs index 5b209f939f64..48f86b08f5d0 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class TransportPreferencesTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -75,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -99,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.json.cs index f649bbb5c501..38f6050812ff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/Api20211201/TransportPreferences.json.cs @@ -20,7 +20,7 @@ public partial class TransportPreferences partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TransportPreferences /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -42,7 +43,8 @@ public partial class TransportPreferences /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.PowerShell.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.PowerShell.cs index c683e2d7b6df..445873cec249 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.PowerShell.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.PowerShell.cs @@ -30,7 +30,8 @@ public partial class EdgeOrderIdentity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class EdgeOrderIdentity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -171,7 +173,7 @@ internal EdgeOrderIdentity(global::System.Management.Automation.PSObject content /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.TypeConverter.cs index 3236d57e9407..b074e7f31810 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class EdgeOrderIdentityTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.json.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.json.cs index 8fae7de3c5f3..656dc19eea1e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.json.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Models/EdgeOrderIdentity.json.cs @@ -19,7 +19,7 @@ public partial class EdgeOrderIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class EdgeOrderIdentity /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -41,7 +42,8 @@ public partial class EdgeOrderIdentity /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.TypeConverter.cs index 18e27e3c8482..ea57e61d0991 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ActionStatusEnumTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.cs index a8fa4ece304b..6f925c73eed2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionStatusEnum.cs @@ -19,7 +19,7 @@ public partial struct ActionStatusEnum : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ActionStatusEnum(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum ActionStatusEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionStatusEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionStatusEnum e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum ActionStatusEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionStatusEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionStatusEnum e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.TypeConverter.cs index 4fa50437189d..01e1fff13759 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.TypeConverter.cs @@ -14,32 +14,32 @@ public partial class ActionTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.cs index 351770fe054a..1bc45fb465b7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ActionType.cs @@ -17,7 +17,7 @@ public partial struct ActionType : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ActionType(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum ActionType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionType e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum ActionType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ActionType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.TypeConverter.cs index 0e37d90bbd26..23bff0fcf6ff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class AddressTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.cs index 79de3973d9a1..884c098e6c17 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressType.cs @@ -22,7 +22,7 @@ public partial struct AddressType : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private AddressType(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum AddressType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressType e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum AddressType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.TypeConverter.cs index 9b7583b63711..348b9f517566 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class AddressValidationStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.cs index cbb976b2653a..1e3196c6a069 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AddressValidationStatus.cs @@ -24,7 +24,7 @@ public partial struct AddressValidationStatus : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private AddressValidationStatus(string underlyingValue) { @@ -85,8 +85,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum AddressValidationStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressValidationStatus e2) { @@ -94,8 +94,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum AddressValidationStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressValidationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressValidationStatus e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.TypeConverter.cs index 6c4254104afa..74921543a684 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class AvailabilityStageTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.cs index 7c216071c644..c5e8f0ff259f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/AvailabilityStage.cs @@ -31,7 +31,7 @@ public partial struct AvailabilityStage : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private AvailabilityStage(string underlyingValue) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum AvailabilityStage - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage e2) { @@ -101,8 +101,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum AvailabilityStage - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AvailabilityStage e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.TypeConverter.cs index 9b930e61c8b2..5d3bad9292ab 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class BillingTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.cs index bed036bca63c..91a5e4fce0f8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/BillingType.cs @@ -19,7 +19,7 @@ public partial struct BillingType : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private BillingType(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum BillingType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.BillingType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.BillingType e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum BillingType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.BillingType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.BillingType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.TypeConverter.cs index b91d787ff839..98a2a2a9d15a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ChargingTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.cs index 2fe79d485b04..04d86e697e43 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ChargingType.cs @@ -19,7 +19,7 @@ public partial struct ChargingType : /// the value for an instance of the Enum. private string _value { get; set; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ChargingType(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum ChargingType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ChargingType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ChargingType e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum ChargingType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ChargingType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ChargingType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs index fdd87587f60d..6bb93ef691e8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class CreatedByTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.cs index 89b52e508d1f..777f341686b8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/CreatedByType.cs @@ -28,7 +28,7 @@ internal static object CreateFrom(object value) return new CreatedByType(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private CreatedByType(string underlyingValue) { @@ -82,8 +82,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.CreatedByType e2) { @@ -91,8 +91,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.CreatedByType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.TypeConverter.cs index 1ddfbf165e33..02cd6ee998cd 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class DescriptionTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.cs index 490fabd8cdf0..37d4355edb8f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DescriptionType.cs @@ -23,7 +23,7 @@ internal static object CreateFrom(object value) return new DescriptionType(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DescriptionType(string underlyingValue) { @@ -77,8 +77,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum DescriptionType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType e2) { @@ -86,8 +86,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum DescriptionType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DescriptionType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.TypeConverter.cs index e06aefb3d6ef..4469a4b07449 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class DisabledReasonTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.cs index 39adb6394625..50ee99948a73 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DisabledReason.cs @@ -46,7 +46,7 @@ internal static object CreateFrom(object value) return new DisabledReason(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DisabledReason(string underlyingValue) { @@ -100,8 +100,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum DisabledReason - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason e2) { @@ -109,8 +109,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum DisabledReason - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DisabledReason e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.TypeConverter.cs index ba4f8740b5bb..e2c72134f791 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.TypeConverter.cs @@ -15,32 +15,32 @@ public partial class DoubleEncryptionStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.cs index 03a2f4800f5c..0e9bd5cc5fe4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/DoubleEncryptionStatus.cs @@ -29,7 +29,7 @@ internal static object CreateFrom(object value) return new DoubleEncryptionStatus(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private DoubleEncryptionStatus(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum DoubleEncryptionStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DoubleEncryptionStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DoubleEncryptionStatus e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum DoubleEncryptionStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DoubleEncryptionStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.DoubleEncryptionStatus e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.TypeConverter.cs index 2bbbd7a25450..13925000b26b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class ImageTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.cs index 36d7bffad2cc..725438cdec7e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/ImageType.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ImageType(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum ImageType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ImageType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ImageType e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum ImageType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ImageType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.ImageType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.TypeConverter.cs index d2fa79bc9d9b..e9853c2f386f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class LengthHeightUnitTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.cs index c13f155534c8..291b6ed37aae 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LengthHeightUnit.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private LengthHeightUnit(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum LengthHeightUnit - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LengthHeightUnit e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LengthHeightUnit e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum LengthHeightUnit - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LengthHeightUnit e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LengthHeightUnit e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.TypeConverter.cs index b289b6bf827c..1807162e7f79 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class LinkTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.cs index 531d77dfc068..e1a25c575eff 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/LinkType.cs @@ -61,7 +61,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private LinkType(string underlyingValue) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum LinkType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LinkType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LinkType e2) { @@ -101,8 +101,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum LinkType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LinkType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.LinkType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.TypeConverter.cs index 86a7f09ac38a..d01975287e9e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class MeteringTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.cs index 9d3cc679d89d..601e1d7c231e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/MeteringType.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private MeteringType(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum MeteringType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.MeteringType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.MeteringType e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum MeteringType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.MeteringType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.MeteringType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.TypeConverter.cs index f770d0966ceb..ee8636250972 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class NotificationStageNameTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.cs index 54537057e6d7..2b0d2f4f67ed 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/NotificationStageName.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private NotificationStageName(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum NotificationStageName - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.NotificationStageName e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.NotificationStageName e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum NotificationStageName - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.NotificationStageName e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.NotificationStageName e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.TypeConverter.cs index e29a84da5e7f..26451f1feb02 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class OrderItemCancellationEnumTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.cs index e2edd1fb94e6..6a9330bf4d3d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemCancellationEnum.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private OrderItemCancellationEnum(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum OrderItemCancellationEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemCancellationEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemCancellationEnum e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum OrderItemCancellationEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemCancellationEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemCancellationEnum e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.TypeConverter.cs index a97b578f8cd2..2ff908756da8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class OrderItemReturnEnumTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.cs index 0904a74250e0..5d9fb00cccca 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemReturnEnum.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private OrderItemReturnEnum(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum OrderItemReturnEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemReturnEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemReturnEnum e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum OrderItemReturnEnum - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemReturnEnum e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemReturnEnum e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.TypeConverter.cs index 46f7b1cc69b3..14c24f64e7d7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class OrderItemTypeTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.cs index ed0c0244d678..f7281ea81459 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/OrderItemType.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private OrderItemType(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum OrderItemType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemType e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum OrderItemType - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemType e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemType e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.TypeConverter.cs index 4dd606ca9724..882b51dfa6c8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.TypeConverter.cs @@ -15,32 +15,32 @@ public partial class OriginTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.cs index 7af3d2586436..de9d30407886 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/Origin.cs @@ -52,7 +52,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private Origin(string underlyingValue) { @@ -83,8 +83,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum Origin - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.Origin e2) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum Origin - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.Origin e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.Origin e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.TypeConverter.cs index da6ab52162ba..bbbf476de016 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class StageNameTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.cs index 837e5628ac6c..11881841d505 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageName.cs @@ -79,7 +79,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private StageName(string underlyingValue) { @@ -110,8 +110,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum StageName - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageName e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageName e2) { @@ -119,8 +119,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum StageName - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageName e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageName e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.TypeConverter.cs index 2fe0ad0e5c7b..c72fcfc2d77b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class StageStatusTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.cs index 907ad59c8f97..54b6f8312674 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/StageStatus.cs @@ -61,7 +61,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private StageStatus(string underlyingValue) { @@ -92,8 +92,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum StageStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageStatus e2) { @@ -101,8 +101,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum StageStatus - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageStatus e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.StageStatus e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.TypeConverter.cs index 995081ab5fc4..c2836af55ad9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SupportedFilterTypesTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.cs index 4babb2f9c416..f58b7a6c64b1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/SupportedFilterTypes.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SupportedFilterTypes(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum SupportedFilterTypes - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.SupportedFilterTypes e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.SupportedFilterTypes e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum SupportedFilterTypes - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.SupportedFilterTypes e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.SupportedFilterTypes e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.TypeConverter.cs index 531b8a4b87a1..9b0f005e0d56 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class TransportShipmentTypesTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.cs index 84c31ed23e75..32265b2658e4 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/TransportShipmentTypes.cs @@ -56,7 +56,7 @@ public override string ToString() return this._value; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private TransportShipmentTypes(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum TransportShipmentTypes - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.TransportShipmentTypes e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.TransportShipmentTypes e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum TransportShipmentTypes - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.TransportShipmentTypes e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.TransportShipmentTypes e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.TypeConverter.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.TypeConverter.cs index 2855d14e91f5..dd834f362f4e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.TypeConverter.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class WeightMeasurementUnitTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.cs index 611f5d26d5c3..30baad203164 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/api/Support/WeightMeasurementUnit.cs @@ -56,7 +56,7 @@ public override string ToString() return this._value; } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private WeightMeasurementUnit(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding != operator for enum WeightMeasurementUnit - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.WeightMeasurementUnit e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.WeightMeasurementUnit e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.EdgeOr } /// Overriding == operator for enum WeightMeasurementUnit - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.WeightMeasurementUnit e1, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.WeightMeasurementUnit e2) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_Get.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_Get.cs index 23e9f70d5589..dd9cb257cb9d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_Get.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Gets information about the specified address.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Autom public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -66,11 +68,11 @@ public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Autom public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -149,8 +151,8 @@ public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Autom /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -161,8 +163,8 @@ public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Autom /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -173,6 +175,11 @@ public partial class GetAzEdgeOrderAddress_Get : global::System.Management.Autom /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -184,7 +191,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -292,7 +316,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -334,12 +357,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -378,8 +416,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List.cs index 0d411c320766..dfc57b0cff22 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists all the addresses available under the subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/addresses", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderAddress_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrderAddress_List : global::System.Management.Auto public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -88,11 +90,11 @@ public partial class GetAzEdgeOrderAddress_List : global::System.Management.Auto public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -156,8 +158,8 @@ public partial class GetAzEdgeOrderAddress_List : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -168,8 +170,8 @@ public partial class GetAzEdgeOrderAddress_List : global::System.Management.Auto /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -180,6 +182,11 @@ public partial class GetAzEdgeOrderAddress_List : global::System.Management.Auto /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -191,7 +198,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -299,7 +323,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -341,12 +364,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -385,8 +423,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List1.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List1.cs index 14b3c52bd669..6c33a5dd95e1 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List1.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderAddress_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists all the addresses available under the given resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -88,11 +90,11 @@ public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Aut public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -170,8 +172,8 @@ public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Aut /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -182,8 +184,8 @@ public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Aut /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -194,6 +196,11 @@ public partial class GetAzEdgeOrderAddress_List1 : global::System.Management.Aut /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -205,7 +212,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -313,7 +337,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -355,12 +378,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -399,8 +437,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderConfiguration_ListExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderConfiguration_ListExpanded.cs index 788c5080f3c4..cda6b02785bb 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderConfiguration_ListExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderConfiguration_ListExpanded.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfiguration))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"This method provides the list of configurations for the given product family, product line and product under subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/listConfigurations", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -35,6 +36,9 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Configuration request object. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationsRequest _configurationsRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ConfigurationsRequest(); + /// A flag to tell whether it is the first onOK call. private bool _isFirst = true; @@ -59,13 +63,7 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M Description = @"Holds details about product hierarchy information and filterable property.", SerializedName = @"configurationFilters", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFilters) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFilters[] ConfigurationFilter { get => ConfigurationsRequestBody.ConfigurationFilter ?? null /* arrayOf */; set => ConfigurationsRequestBody.ConfigurationFilter = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationsRequest _configurationsRequestBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ConfigurationsRequest(); - - /// Configuration request object. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationsRequest ConfigurationsRequestBody { get => this._configurationsRequestBody; set => this._configurationsRequestBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFilters[] ConfigurationFilter { get => _configurationsRequestBody.ConfigurationFilter ?? null /* arrayOf */; set => _configurationsRequestBody.ConfigurationFilter = value; } /// /// Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing @@ -80,12 +78,13 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M SerializedName = @"customerSubscriptionDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails) })] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.DoNotExport] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails CustomerSubscriptionDetail { get => ConfigurationsRequestBody.CustomerSubscriptionDetail ?? null /* object */; set => ConfigurationsRequestBody.CustomerSubscriptionDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails CustomerSubscriptionDetail { get => _configurationsRequestBody.CustomerSubscriptionDetail ?? null /* object */; set => _configurationsRequestBody.CustomerSubscriptionDetail = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -107,11 +106,11 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -175,8 +174,8 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -187,8 +186,8 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurations + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -199,6 +198,11 @@ public partial class GetAzEdgeOrderConfiguration_ListExpanded : global::System.M /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -210,7 +214,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -321,7 +342,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -338,13 +358,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ListConfigurations(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, ConfigurationsRequestBody, onOk, onDefault, this, Pipeline); + await this.Client.ListConfigurations(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, _configurationsRequestBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null,body=ConfigurationsRequestBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null,body=_configurationsRequestBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -363,12 +383,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -390,14 +425,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=ConfigurationsRequestBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=_configurationsRequestBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=ConfigurationsRequestBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=_configurationsRequestBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -407,8 +442,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurations + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_Get.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_Get.cs index eda5d2acffaa..3c04a88d8a50 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_Get.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Gets an order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automati public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -84,11 +86,11 @@ public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automati public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -164,8 +166,8 @@ public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -176,8 +178,8 @@ public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automati /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -188,6 +190,11 @@ public partial class GetAzEdgeOrderItem_Get : global::System.Management.Automati /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -199,7 +206,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -307,7 +331,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -349,12 +372,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -393,8 +431,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List.cs index bc09d0566698..6bd3f770a950 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists order item at subscription level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/orderItems", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderItem_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrderItem_List : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -106,11 +108,11 @@ public partial class GetAzEdgeOrderItem_List : global::System.Management.Automat public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -174,8 +176,8 @@ public partial class GetAzEdgeOrderItem_List : global::System.Management.Automat /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -186,8 +188,8 @@ public partial class GetAzEdgeOrderItem_List : global::System.Management.Automat /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -198,6 +200,11 @@ public partial class GetAzEdgeOrderItem_List : global::System.Management.Automat /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -209,7 +216,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -317,7 +341,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -359,12 +382,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -403,8 +441,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List1.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List1.cs index ab316d153ff2..28c1aa8cb31f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List1.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderItem_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists order item at resource group level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automa public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -106,11 +108,11 @@ public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -188,8 +190,8 @@ public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -200,8 +202,8 @@ public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -212,6 +214,11 @@ public partial class GetAzEdgeOrderItem_List1 : global::System.Management.Automa /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -223,7 +230,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -331,7 +355,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -373,12 +396,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -417,8 +455,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderOperation_List.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderOperation_List.cs index 682ff246943e..6f1c96e9412a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderOperation_List.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderOperation_List.cs @@ -17,6 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"This method gets all the operations that are exposed for customer.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/providers/Microsoft.EdgeOrder/operations", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -49,9 +50,10 @@ public partial class GetAzEdgeOrderOperation_List : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -73,11 +75,11 @@ public partial class GetAzEdgeOrderOperation_List : global::System.Management.Au public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -106,8 +108,8 @@ public partial class GetAzEdgeOrderOperation_List : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -118,8 +120,8 @@ public partial class GetAzEdgeOrderOperation_List : global::System.Management.Au /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperationListResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -130,6 +132,11 @@ public partial class GetAzEdgeOrderOperation_List : global::System.Management.Au /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -141,7 +148,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -249,7 +273,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -288,12 +311,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -332,8 +370,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperationListResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamilyMetadata_List.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamilyMetadata_List.cs index 5a554446471d..6bed0a4d3513 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamilyMetadata_List.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamilyMetadata_List.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadataDetails))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"This method provides the list of product families metadata for the given subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/productFamiliesMetadata", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -50,9 +51,10 @@ public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -74,11 +76,11 @@ public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -143,8 +145,8 @@ public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -155,8 +157,8 @@ public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadata + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -167,6 +169,11 @@ public partial class GetAzEdgeOrderProductFamilyMetadata_List : global::System.M /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -178,7 +185,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -289,7 +313,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -331,12 +354,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -375,8 +413,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadata + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamily_ListExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamily_ListExpanded.cs index f385925f9339..717575c97751 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamily_ListExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrderProductFamily_ListExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamily))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"This method provides the list of product families for the given subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/listProductFamilies", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -39,6 +40,9 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M /// Link to retrieve next page. private string _nextLink; + /// The filters for showing the product families. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequest _productFamiliesRequestBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ProductFamiliesRequest(); + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -60,12 +64,13 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M SerializedName = @"customerSubscriptionDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails) })] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.DoNotExport] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails CustomerSubscriptionDetail { get => ProductFamiliesRequestBody.CustomerSubscriptionDetail ?? null /* object */; set => ProductFamiliesRequestBody.CustomerSubscriptionDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICustomerSubscriptionDetails CustomerSubscriptionDetail { get => _productFamiliesRequestBody.CustomerSubscriptionDetail ?? null /* object */; set => _productFamiliesRequestBody.CustomerSubscriptionDetail = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -97,7 +102,7 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M Description = @"Dictionary of filterable properties on product family.", SerializedName = @"filterableProperties", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequestFilterableProperties) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequestFilterableProperties FilterableProperty { get => ProductFamiliesRequestBody.FilterableProperty ?? null /* object */; set => ProductFamiliesRequestBody.FilterableProperty = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequestFilterableProperties FilterableProperty { get => _productFamiliesRequestBody.FilterableProperty ?? null /* object */; set => _productFamiliesRequestBody.FilterableProperty = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -115,11 +120,11 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -127,12 +132,6 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M /// private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.HttpPipeline Pipeline { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequest _productFamiliesRequestBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ProductFamiliesRequest(); - - /// The filters for showing the product families. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesRequest ProductFamiliesRequestBody { get => this._productFamiliesRequestBody; set => this._productFamiliesRequestBody = value; } - /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -189,8 +188,8 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -201,8 +200,8 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilies + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -213,6 +212,11 @@ public partial class GetAzEdgeOrderProductFamily_ListExpanded : global::System.M /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -224,7 +228,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -335,7 +356,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -352,13 +372,13 @@ protected override void ProcessRecord() foreach( var SubscriptionId in this.SubscriptionId ) { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ListProductFamilies(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, ProductFamiliesRequestBody, onOk, onDefault, this, Pipeline); + await this.Client.ListProductFamilies(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, _productFamiliesRequestBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null,body=ProductFamiliesRequestBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null,SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null,body=_productFamiliesRequestBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -377,12 +397,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -404,14 +439,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=ProductFamiliesRequestBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=_productFamiliesRequestBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=ProductFamiliesRequestBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null, body=_productFamiliesRequestBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -421,8 +456,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamilies + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_Get.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_Get.cs index ce726ca8f6ef..96e5fb8192d7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_Get.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_Get.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Gets an order.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/locations/{location}/orders/{orderName}", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -42,9 +43,10 @@ public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.P public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -80,11 +82,11 @@ public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.P public string Location { get => this._location; set => this._location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -160,8 +162,8 @@ public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.P /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -172,8 +174,8 @@ public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.P /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -184,6 +186,11 @@ public partial class GetAzEdgeOrder_Get : global::System.Management.Automation.P /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -195,7 +202,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -303,7 +327,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -345,12 +368,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -389,8 +427,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List.cs index 46d8d8d87534..053ca9675d85 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists order at subscription level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.EdgeOrder/orders", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrder_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrder_List : global::System.Management.Automation. public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -72,11 +74,11 @@ public partial class GetAzEdgeOrder_List : global::System.Management.Automation. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -140,8 +142,8 @@ public partial class GetAzEdgeOrder_List : global::System.Management.Automation. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -152,8 +154,8 @@ public partial class GetAzEdgeOrder_List : global::System.Management.Automation. /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -164,6 +166,11 @@ public partial class GetAzEdgeOrder_List : global::System.Management.Automation. /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -175,7 +182,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -283,7 +307,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -325,12 +348,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -369,8 +407,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List1.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List1.cs index 9342189221b5..0390bdabbbea 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List1.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/GetAzEdgeOrder_List1.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Lists order at resource group level.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orders", ApiVersion = "2021-12-01")] public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -48,9 +49,10 @@ public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -72,11 +74,11 @@ public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -154,8 +156,8 @@ public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -166,8 +168,8 @@ public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResourceList + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -178,6 +180,11 @@ public partial class GetAzEdgeOrder_List1 : global::System.Management.Automation /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -189,7 +196,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -297,7 +321,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -339,12 +362,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -383,8 +421,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResourceList + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs index 595fe3ec1bae..a6aaa0a3813f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Cancel order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}/cancel", ApiVersion = "2021-12-01")] public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -28,6 +29,9 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; + /// Reason for cancellation. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason _cancellationReasonBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.CancellationReason(); + /// /// The for this operation. /// @@ -38,19 +42,14 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason _cancellationReasonBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.CancellationReason(); - - /// Reason for cancellation. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason CancellationReasonBody { get => this._cancellationReasonBody; set => this._cancellationReasonBody = value; } - /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -72,11 +71,11 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -131,7 +130,7 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: Description = @"Reason for cancellation.", SerializedName = @"reason", PossibleTypes = new [] { typeof(string) })] - public string Reason { get => CancellationReasonBody.Reason ?? null; set => CancellationReasonBody.Reason = value; } + public string Reason { get => _cancellationReasonBody.Reason ?? null; set => _cancellationReasonBody.Reason = value; } /// Backing field for property. private string _resourceGroupName; @@ -170,8 +169,8 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -202,6 +201,11 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelExpanded : global:: /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -213,7 +217,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -324,7 +345,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -339,12 +359,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.CancelOrderItem(Name, SubscriptionId, ResourceGroupName, CancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.CancelOrderItem(Name, SubscriptionId, ResourceGroupName, _cancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=CancellationReasonBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=_cancellationReasonBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -363,12 +383,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -390,14 +425,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=CancellationReasonBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_cancellationReasonBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=CancellationReasonBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_cancellationReasonBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs index 573ec3394be4..3aa55ccabb58 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Cancel order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}/cancel", ApiVersion = "2021-12-01")] public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -28,6 +29,9 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; + /// Reason for cancellation. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason _cancellationReasonBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.CancellationReason(); + /// /// The for this operation. /// @@ -38,19 +42,14 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason _cancellationReasonBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.CancellationReason(); - - /// Reason for cancellation. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ICancellationReason CancellationReasonBody { get => this._cancellationReasonBody; set => this._cancellationReasonBody = value; } - /// The reference to the client API class. public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -80,11 +79,11 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -124,15 +123,15 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded Description = @"Reason for cancellation.", SerializedName = @"reason", PossibleTypes = new [] { typeof(string) })] - public string Reason { get => CancellationReasonBody.Reason ?? null; set => CancellationReasonBody.Reason = value; } + public string Reason { get => _cancellationReasonBody.Reason ?? null; set => _cancellationReasonBody.Reason = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -163,6 +162,11 @@ public partial class InvokeAzEdgeOrderItemCancellation_CancelViaIdentityExpanded /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -174,7 +178,24 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -285,7 +306,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -302,7 +322,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.CancelOrderItemViaIdentity(InputObject.Id, CancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.CancelOrderItemViaIdentity(InputObject.Id, _cancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); } else { @@ -319,13 +339,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.CancelOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, CancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); + await this.Client.CancelOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, _cancellationReasonBody, onOk, onNoContent, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=CancellationReasonBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_cancellationReasonBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -344,12 +364,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -371,14 +406,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=CancellationReasonBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_cancellationReasonBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=CancellationReasonBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_cancellationReasonBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs index fea53e17eee4..cb3159e50fd8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Return order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}/return", ApiVersion = "2021-12-01")] public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -33,6 +34,9 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Return order item request body + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails _returnOrderItemDetailsBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ReturnOrderItemDetails(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -47,9 +51,10 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -71,11 +76,11 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -151,7 +156,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ReturnAddressContactDetail { get => ReturnOrderItemDetailsBody.ReturnAddressContactDetail ?? null /* object */; set => ReturnOrderItemDetailsBody.ReturnAddressContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ReturnAddressContactDetail { get => _returnOrderItemDetailsBody.ReturnAddressContactDetail ?? null /* object */; set => _returnOrderItemDetailsBody.ReturnAddressContactDetail = value; } /// Shipping details for the address [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping details for the address")] @@ -162,13 +167,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ReturnAddressShippingAddress { get => ReturnOrderItemDetailsBody.ReturnAddressShippingAddress ?? null /* object */; set => ReturnOrderItemDetailsBody.ReturnAddressShippingAddress = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails _returnOrderItemDetailsBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ReturnOrderItemDetails(); - - /// Return order item request body - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails ReturnOrderItemDetailsBody { get => this._returnOrderItemDetailsBody; set => this._returnOrderItemDetailsBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ReturnAddressShippingAddress { get => _returnOrderItemDetailsBody.ReturnAddressShippingAddress ?? null /* object */; set => _returnOrderItemDetailsBody.ReturnAddressShippingAddress = value; } /// Return Reason. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Return Reason.")] @@ -179,7 +178,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S Description = @"Return Reason.", SerializedName = @"returnReason", PossibleTypes = new [] { typeof(string) })] - public string ReturnReason { get => ReturnOrderItemDetailsBody.ReturnReason ?? null; set => ReturnOrderItemDetailsBody.ReturnReason = value; } + public string ReturnReason { get => _returnOrderItemDetailsBody.ReturnReason ?? null; set => _returnOrderItemDetailsBody.ReturnReason = value; } /// Service tag (located on the bottom-right corner of the device) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Service tag (located on the bottom-right corner of the device)")] @@ -190,7 +189,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S Description = @"Service tag (located on the bottom-right corner of the device)", SerializedName = @"serviceTag", PossibleTypes = new [] { typeof(string) })] - public string ServiceTag { get => ReturnOrderItemDetailsBody.ServiceTag ?? null; set => ReturnOrderItemDetailsBody.ServiceTag = value; } + public string ServiceTag { get => _returnOrderItemDetailsBody.ServiceTag ?? null; set => _returnOrderItemDetailsBody.ServiceTag = value; } /// Shipping Box required [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping Box required")] @@ -201,7 +200,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S Description = @"Shipping Box required", SerializedName = @"shippingBoxRequired", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter ShippingBoxRequired { get => ReturnOrderItemDetailsBody.ShippingBoxRequired ?? default(global::System.Management.Automation.SwitchParameter); set => ReturnOrderItemDetailsBody.ShippingBoxRequired = value; } + public global::System.Management.Automation.SwitchParameter ShippingBoxRequired { get => _returnOrderItemDetailsBody.ShippingBoxRequired ?? default(global::System.Management.Automation.SwitchParameter); set => _returnOrderItemDetailsBody.ShippingBoxRequired = value; } /// Backing field for property. private string _subscriptionId; @@ -226,8 +225,8 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -248,6 +247,11 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnExpanded : global::S /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -273,7 +277,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ReturnOrderItemDetailsBody = this.ReturnOrderItemDetailsBody; + clone._returnOrderItemDetailsBody = this._returnOrderItemDetailsBody; clone.OrderItemName = this.OrderItemName; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; @@ -283,7 +287,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -424,7 +445,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -439,12 +459,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.ReturnOrderItem(OrderItemName, SubscriptionId, ResourceGroupName, ReturnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); + await this.Client.ReturnOrderItem(OrderItemName, SubscriptionId, ResourceGroupName, _returnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=ReturnOrderItemDetailsBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=_returnOrderItemDetailsBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -463,12 +483,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -490,14 +525,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=ReturnOrderItemDetailsBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_returnOrderItemDetailsBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=ReturnOrderItemDetailsBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { OrderItemName=OrderItemName, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_returnOrderItemDetailsBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs index f1b3ec6ec8c5..a0c743be2973 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Return order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}/return", ApiVersion = "2021-12-01")] public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -33,6 +34,9 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Return order item request body + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails _returnOrderItemDetailsBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ReturnOrderItemDetails(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -47,9 +51,10 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -79,11 +84,11 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -131,7 +136,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ReturnAddressContactDetail { get => ReturnOrderItemDetailsBody.ReturnAddressContactDetail ?? null /* object */; set => ReturnOrderItemDetailsBody.ReturnAddressContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ReturnAddressContactDetail { get => _returnOrderItemDetailsBody.ReturnAddressContactDetail ?? null /* object */; set => _returnOrderItemDetailsBody.ReturnAddressContactDetail = value; } /// Shipping details for the address [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping details for the address")] @@ -142,13 +147,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ReturnAddressShippingAddress { get => ReturnOrderItemDetailsBody.ReturnAddressShippingAddress ?? null /* object */; set => ReturnOrderItemDetailsBody.ReturnAddressShippingAddress = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails _returnOrderItemDetailsBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ReturnOrderItemDetails(); - - /// Return order item request body - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IReturnOrderItemDetails ReturnOrderItemDetailsBody { get => this._returnOrderItemDetailsBody; set => this._returnOrderItemDetailsBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ReturnAddressShippingAddress { get => _returnOrderItemDetailsBody.ReturnAddressShippingAddress ?? null /* object */; set => _returnOrderItemDetailsBody.ReturnAddressShippingAddress = value; } /// Return Reason. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Return Reason.")] @@ -159,7 +158,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded Description = @"Return Reason.", SerializedName = @"returnReason", PossibleTypes = new [] { typeof(string) })] - public string ReturnReason { get => ReturnOrderItemDetailsBody.ReturnReason ?? null; set => ReturnOrderItemDetailsBody.ReturnReason = value; } + public string ReturnReason { get => _returnOrderItemDetailsBody.ReturnReason ?? null; set => _returnOrderItemDetailsBody.ReturnReason = value; } /// Service tag (located on the bottom-right corner of the device) [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Service tag (located on the bottom-right corner of the device)")] @@ -170,7 +169,7 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded Description = @"Service tag (located on the bottom-right corner of the device)", SerializedName = @"serviceTag", PossibleTypes = new [] { typeof(string) })] - public string ServiceTag { get => ReturnOrderItemDetailsBody.ServiceTag ?? null; set => ReturnOrderItemDetailsBody.ServiceTag = value; } + public string ServiceTag { get => _returnOrderItemDetailsBody.ServiceTag ?? null; set => _returnOrderItemDetailsBody.ServiceTag = value; } /// Shipping Box required [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping Box required")] @@ -181,15 +180,15 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded Description = @"Shipping Box required", SerializedName = @"shippingBoxRequired", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter ShippingBoxRequired { get => ReturnOrderItemDetailsBody.ShippingBoxRequired ?? default(global::System.Management.Automation.SwitchParameter); set => ReturnOrderItemDetailsBody.ShippingBoxRequired = value; } + public global::System.Management.Automation.SwitchParameter ShippingBoxRequired { get => _returnOrderItemDetailsBody.ShippingBoxRequired ?? default(global::System.Management.Automation.SwitchParameter); set => _returnOrderItemDetailsBody.ShippingBoxRequired = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -210,6 +209,11 @@ public partial class InvokeAzEdgeOrderReturnOrderItem_ReturnViaIdentityExpanded /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -237,14 +241,31 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.InvokeAzEdgeOrderRet clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ReturnOrderItemDetailsBody = this.ReturnOrderItemDetailsBody; + clone._returnOrderItemDetailsBody = this._returnOrderItemDetailsBody; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// @@ -385,7 +406,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -402,7 +422,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.ReturnOrderItemViaIdentity(InputObject.Id, ReturnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); + await this.Client.ReturnOrderItemViaIdentity(InputObject.Id, _returnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); } else { @@ -419,13 +439,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.ReturnOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, ReturnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); + await this.Client.ReturnOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, _returnOrderItemDetailsBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ReturnOrderItemDetailsBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_returnOrderItemDetailsBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -444,12 +464,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -471,14 +506,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ReturnOrderItemDetailsBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_returnOrderItemDetailsBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ReturnOrderItemDetailsBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_returnOrderItemDetailsBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs index 9ae0f2cc9215..456a704c0762 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderAddress_CreateExpanded.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Creates a new address with the specified parameters. Existing address can be updated with this API")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -30,17 +31,14 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; + /// Address Resource. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource _addressResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressResource(); + /// /// The for this operation. /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource _addressResourceBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressResource(); - - /// Address Resource. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource AddressResourceBody { get => this._addressResourceBody; set => this._addressResourceBody = value; } - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -63,12 +61,13 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => AddressResourceBody.ContactDetail ?? null /* object */; set => AddressResourceBody.ContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => _addressResourceBody.ContactDetail ?? null /* object */; set => _addressResourceBody.ContactDetail = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -98,14 +97,14 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => AddressResourceBody.Location ?? null; set => AddressResourceBody.Location = value; } + public string Location { get => _addressResourceBody.Location ?? null; set => _addressResourceBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -178,7 +177,7 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => AddressResourceBody.ShippingAddress ?? null /* object */; set => AddressResourceBody.ShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => _addressResourceBody.ShippingAddress ?? null /* object */; set => _addressResourceBody.ShippingAddress = value; } /// Backing field for property. private string _subscriptionId; @@ -208,15 +207,15 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags Tag { get => AddressResourceBody.Tag ?? null /* object */; set => AddressResourceBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags Tag { get => _addressResourceBody.Tag ?? null /* object */; set => _addressResourceBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -227,8 +226,8 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -239,6 +238,11 @@ public partial class NewAzEdgeOrderAddress_CreateExpanded : global::System.Manag /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -264,7 +268,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderAddres clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.AddressResourceBody = this.AddressResourceBody; + clone._addressResourceBody = this._addressResourceBody; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; @@ -274,7 +278,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderAddres /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -415,7 +436,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -430,12 +450,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.CreateAddress(Name, SubscriptionId, ResourceGroupName, AddressResourceBody, onOk, onDefault, this, Pipeline); + await this.Client.CreateAddress(Name, SubscriptionId, ResourceGroupName, _addressResourceBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=AddressResourceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=_addressResourceBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -454,12 +474,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -481,14 +516,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=AddressResourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_addressResourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=AddressResourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_addressResourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -498,8 +533,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs index cf49a69a16ca..cae09b1a02db 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/NewAzEdgeOrderItem_CreateExpanded.cs @@ -19,6 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Creates an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -36,6 +37,9 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Represents order item contract + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource _orderItemResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemResource(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -50,9 +54,10 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -67,7 +72,7 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => OrderItemResourceBody.ForwardAddressContactDetail ?? null /* object */; set => OrderItemResourceBody.ForwardAddressContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => _orderItemResourceBody.ForwardAddressContactDetail ?? null /* object */; set => _orderItemResourceBody.ForwardAddressContactDetail = value; } /// Shipping details for the address [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping details for the address")] @@ -78,7 +83,7 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardShippingAddress { get => OrderItemResourceBody.ForwardAddressShippingAddress ?? null /* object */; set => OrderItemResourceBody.ForwardAddressShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardShippingAddress { get => _orderItemResourceBody.ForwardAddressShippingAddress ?? null /* object */; set => _orderItemResourceBody.ForwardAddressShippingAddress = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -104,14 +109,14 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"The geo-location where the resource lives", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => OrderItemResourceBody.Location ?? null; set => OrderItemResourceBody.Location = value; } + public string Location { get => _orderItemResourceBody.Location ?? null; set => _orderItemResourceBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -146,7 +151,7 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"Id of the order to which order item belongs to", SerializedName = @"orderId", PossibleTypes = new [] { typeof(string) })] - public string OrderId { get => OrderItemResourceBody.OrderId ?? null; set => OrderItemResourceBody.OrderId = value; } + public string OrderId { get => _orderItemResourceBody.OrderId ?? null; set => _orderItemResourceBody.OrderId = value; } /// Represents order item details. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Represents order item details.")] @@ -157,13 +162,7 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"Represents order item details.", SerializedName = @"orderItemDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemDetails OrderItemDetail { get => OrderItemResourceBody.OrderItemDetail ?? null /* object */; set => OrderItemResourceBody.OrderItemDetail = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource _orderItemResourceBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemResource(); - - /// Represents order item contract - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource OrderItemResourceBody { get => this._orderItemResourceBody; set => this._orderItemResourceBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemDetails OrderItemDetail { get => _orderItemResourceBody.OrderItemDetail ?? null /* object */; set => _orderItemResourceBody.OrderItemDetail = value; } /// /// The instance of the that the remote call will use. @@ -228,15 +227,15 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme Description = @"Resource tags.", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags Tag { get => OrderItemResourceBody.Tag ?? null /* object */; set => OrderItemResourceBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.ITrackedResourceTags Tag { get => _orderItemResourceBody.Tag ?? null /* object */; set => _orderItemResourceBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -247,8 +246,8 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -259,6 +258,11 @@ public partial class NewAzEdgeOrderItem_CreateExpanded : global::System.Manageme /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -284,7 +288,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderItem_C clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.OrderItemResourceBody = this.OrderItemResourceBody; + clone._orderItemResourceBody = this._orderItemResourceBody; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; @@ -294,7 +298,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.NewAzEdgeOrderItem_C /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -435,7 +456,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -450,12 +470,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.CreateOrderItem(Name, SubscriptionId, ResourceGroupName, OrderItemResourceBody, onOk, onDefault, this, Pipeline); + await this.Client.CreateOrderItem(Name, SubscriptionId, ResourceGroupName, _orderItemResourceBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=OrderItemResourceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,body=_orderItemResourceBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -474,12 +494,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -501,14 +536,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=OrderItemResourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_orderItemResourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=OrderItemResourceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, body=_orderItemResourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -518,8 +553,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs index 0568992fe8b4..757f0689588e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Deletes an address.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class RemoveAzEdgeOrderAddress_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class RemoveAzEdgeOrderAddress_Delete : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -71,11 +73,11 @@ public partial class RemoveAzEdgeOrderAddress_Delete : global::System.Management public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -169,8 +171,8 @@ public partial class RemoveAzEdgeOrderAddress_Delete : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -201,6 +203,11 @@ public partial class RemoveAzEdgeOrderAddress_Delete : global::System.Management /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -235,7 +242,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -368,7 +392,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -415,12 +438,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs index 51ca53b9c927..3abf60871858 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderAddress_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Deletes an address.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class RemoveAzEdgeOrderAddress_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class RemoveAzEdgeOrderAddress_DeleteViaIdentity : global::System public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -79,11 +81,11 @@ public partial class RemoveAzEdgeOrderAddress_DeleteViaIdentity : global::System public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -127,8 +129,8 @@ public partial class RemoveAzEdgeOrderAddress_DeleteViaIdentity : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -159,6 +161,11 @@ public partial class RemoveAzEdgeOrderAddress_DeleteViaIdentity : global::System /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -190,7 +197,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -323,7 +347,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -390,12 +413,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs index 3a4fe3ca1d1d..ca5166a5e35f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_Delete.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Deletes an order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -71,11 +73,11 @@ public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Au public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -166,8 +168,8 @@ public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Au /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -198,6 +200,11 @@ public partial class RemoveAzEdgeOrderItem_Delete : global::System.Management.Au /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -232,7 +239,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -365,7 +389,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -412,12 +435,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs index f30deeac1f4a..8a19db80f221 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/RemoveAzEdgeOrderItem_DeleteViaIdentity.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Deletes an order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -47,9 +48,10 @@ public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -79,11 +81,11 @@ public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Ma public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -127,8 +129,8 @@ public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Ma /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -159,6 +161,11 @@ public partial class RemoveAzEdgeOrderItem_DeleteViaIdentity : global::System.Ma /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -190,7 +197,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.RemoveAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -323,7 +347,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -390,12 +413,27 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs index 36d796309e97..3681a5139891 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Updates the properties of an existing address.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -28,17 +29,14 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; + /// The Address update parameters + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter _addressUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressUpdateParameter(); + /// /// The for this operation. /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter _addressUpdateParameterBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressUpdateParameter(); - - /// The Address update parameters - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter AddressUpdateParameterBody { get => this._addressUpdateParameterBody; set => this._addressUpdateParameterBody = value; } - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -61,12 +59,13 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => AddressUpdateParameterBody.ContactDetail ?? null /* object */; set => AddressUpdateParameterBody.ContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => _addressUpdateParameterBody.ContactDetail ?? null /* object */; set => _addressUpdateParameterBody.ContactDetail = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -105,11 +104,11 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -182,7 +181,7 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => AddressUpdateParameterBody.ShippingAddress ?? null /* object */; set => AddressUpdateParameterBody.ShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => _addressUpdateParameterBody.ShippingAddress ?? null /* object */; set => _addressUpdateParameterBody.ShippingAddress = value; } /// Backing field for property. private string _subscriptionId; @@ -215,15 +214,15 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags Tag { get => AddressUpdateParameterBody.Tag ?? null /* object */; set => AddressUpdateParameterBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags Tag { get => _addressUpdateParameterBody.Tag ?? null /* object */; set => _addressUpdateParameterBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -234,8 +233,8 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -246,6 +245,11 @@ public partial class UpdateAzEdgeOrderAddress_UpdateExpanded : global::System.Ma /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -271,7 +275,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.AddressUpdateParameterBody = this.AddressUpdateParameterBody; + clone._addressUpdateParameterBody = this._addressUpdateParameterBody; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; @@ -282,7 +286,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -415,7 +436,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -430,12 +450,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UpdateAddress(Name, SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, AddressUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateAddress(Name, SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _addressUpdateParameterBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=AddressUpdateParameterBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_addressUpdateParameterBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -462,12 +482,27 @@ public UpdateAzEdgeOrderAddress_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -489,14 +524,14 @@ public UpdateAzEdgeOrderAddress_UpdateExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=AddressUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_addressUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=AddressUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_addressUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -506,8 +541,8 @@ public UpdateAzEdgeOrderAddress_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs index e119f3d2229f..1f3e8747afc2 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Updates the properties of an existing address.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}", ApiVersion = "2021-12-01")] public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -28,17 +29,14 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global /// A unique id generatd for the this cmdlet when ProcessRecord() is called. private string __processRecordId; + /// The Address update parameters + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter _addressUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressUpdateParameter(); + /// /// The for this operation. /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter _addressUpdateParameterBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.AddressUpdateParameter(); - - /// The Address update parameters - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameter AddressUpdateParameterBody { get => this._addressUpdateParameterBody; set => this._addressUpdateParameterBody = value; } - /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -61,12 +59,13 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => AddressUpdateParameterBody.ContactDetail ?? null /* object */; set => AddressUpdateParameterBody.ContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ContactDetail { get => _addressUpdateParameterBody.ContactDetail ?? null /* object */; set => _addressUpdateParameterBody.ContactDetail = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -113,11 +112,11 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -158,7 +157,7 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => AddressUpdateParameterBody.ShippingAddress ?? null /* object */; set => AddressUpdateParameterBody.ShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ShippingAddress { get => _addressUpdateParameterBody.ShippingAddress ?? null /* object */; set => _addressUpdateParameterBody.ShippingAddress = value; } /// /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across @@ -173,15 +172,15 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags Tag { get => AddressUpdateParameterBody.Tag ?? null /* object */; set => AddressUpdateParameterBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressUpdateParameterTags Tag { get => _addressUpdateParameterBody.Tag ?? null /* object */; set => _addressUpdateParameterBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -192,8 +191,8 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -204,6 +203,11 @@ public partial class UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded : global /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -229,7 +233,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.AddressUpdateParameterBody = this.AddressUpdateParameterBody; + clone._addressUpdateParameterBody = this._addressUpdateParameterBody; clone.IfMatch = this.IfMatch; return clone; } @@ -237,7 +241,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderAdd /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -370,7 +391,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -387,7 +407,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.UpdateAddressViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, AddressUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateAddressViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _addressUpdateParameterBody, onOk, onDefault, this, Pipeline); } else { @@ -404,13 +424,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.UpdateAddress(InputObject.AddressName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, AddressUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateAddress(InputObject.AddressName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _addressUpdateParameterBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=AddressUpdateParameterBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_addressUpdateParameterBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -437,12 +457,27 @@ public UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -464,14 +499,14 @@ public UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=AddressUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_addressUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=AddressUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_addressUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -481,8 +516,8 @@ public UpdateAzEdgeOrderAddress_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs index 2b847f12184e..c970f7caee3e 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Updates the properties of an existing order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -33,6 +34,9 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Updates order item parameters. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter _orderItemUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemUpdateParameter(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -47,9 +51,10 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -64,7 +69,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => OrderItemUpdateParameterBody.ForwardAddressContactDetail ?? null /* object */; set => OrderItemUpdateParameterBody.ForwardAddressContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => _orderItemUpdateParameterBody.ForwardAddressContactDetail ?? null /* object */; set => _orderItemUpdateParameterBody.ForwardAddressContactDetail = value; } /// Shipping details for the address [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping details for the address")] @@ -75,7 +80,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardAddressShippingAddress { get => OrderItemUpdateParameterBody.ForwardAddressShippingAddress ?? null /* object */; set => OrderItemUpdateParameterBody.ForwardAddressShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardAddressShippingAddress { get => _orderItemUpdateParameterBody.ForwardAddressShippingAddress ?? null /* object */; set => _orderItemUpdateParameterBody.ForwardAddressShippingAddress = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -110,11 +115,11 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -150,13 +155,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag Description = @"Additional notification email list.", SerializedName = @"notificationEmailList", PossibleTypes = new [] { typeof(string) })] - public string[] NotificationEmailList { get => OrderItemUpdateParameterBody.NotificationEmailList ?? null /* arrayOf */; set => OrderItemUpdateParameterBody.NotificationEmailList = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter _orderItemUpdateParameterBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemUpdateParameter(); - - /// Updates order item parameters. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter OrderItemUpdateParameterBody { get => this._orderItemUpdateParameterBody; set => this._orderItemUpdateParameterBody = value; } + public string[] NotificationEmailList { get => _orderItemUpdateParameterBody.NotificationEmailList ?? null /* arrayOf */; set => _orderItemUpdateParameterBody.NotificationEmailList = value; } /// /// The instance of the that the remote call will use. @@ -172,7 +171,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag Description = @"Customer preference.", SerializedName = @"preferences", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences Preference { get => OrderItemUpdateParameterBody.Preference ?? null /* object */; set => OrderItemUpdateParameterBody.Preference = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences Preference { get => _orderItemUpdateParameterBody.Preference ?? null /* object */; set => _orderItemUpdateParameterBody.Preference = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -235,15 +234,15 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags Tag { get => OrderItemUpdateParameterBody.Tag ?? null /* object */; set => OrderItemUpdateParameterBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags Tag { get => _orderItemUpdateParameterBody.Tag ?? null /* object */; set => _orderItemUpdateParameterBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -254,8 +253,8 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -266,6 +265,11 @@ public partial class UpdateAzEdgeOrderItem_UpdateExpanded : global::System.Manag /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -291,7 +295,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.OrderItemUpdateParameterBody = this.OrderItemUpdateParameterBody; + clone._orderItemUpdateParameterBody = this._orderItemUpdateParameterBody; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; @@ -302,7 +306,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -435,7 +456,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -450,12 +470,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.UpdateOrderItem(Name, SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, OrderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateOrderItem(Name, SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _orderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=OrderItemUpdateParameterBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name,SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_orderItemUpdateParameterBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -482,12 +502,27 @@ public UpdateAzEdgeOrderItem_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -509,14 +544,14 @@ public UpdateAzEdgeOrderItem_UpdateExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=OrderItemUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_orderItemUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=OrderItemUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { Name=Name, SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_orderItemUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -526,8 +561,8 @@ public UpdateAzEdgeOrderItem_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs index 2925f3b18972..32eb11e455ea 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/cmdlets/UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded.cs @@ -16,6 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Description(@"Updates the properties of an existing order item.")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}", ApiVersion = "2021-12-01")] public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener { @@ -33,6 +34,9 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Updates order item parameters. + private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter _orderItemUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemUpdateParameter(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Runtime)] @@ -47,9 +51,10 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.EdgeOrder Client => Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category(global::Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.ParameterCategory.Azure)] @@ -64,7 +69,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S Description = @"Contact details for the address", SerializedName = @"contactDetails", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => OrderItemUpdateParameterBody.ForwardAddressContactDetail ?? null /* object */; set => OrderItemUpdateParameterBody.ForwardAddressContactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails ForwardAddressContactDetail { get => _orderItemUpdateParameterBody.ForwardAddressContactDetail ?? null /* object */; set => _orderItemUpdateParameterBody.ForwardAddressContactDetail = value; } /// Shipping details for the address [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Shipping details for the address")] @@ -75,7 +80,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S Description = @"Shipping details for the address", SerializedName = @"shippingAddress", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardAddressShippingAddress { get => OrderItemUpdateParameterBody.ForwardAddressShippingAddress ?? null /* object */; set => OrderItemUpdateParameterBody.ForwardAddressShippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress ForwardAddressShippingAddress { get => _orderItemUpdateParameterBody.ForwardAddressShippingAddress ?? null /* object */; set => _orderItemUpdateParameterBody.ForwardAddressShippingAddress = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -118,11 +123,11 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -143,13 +148,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S Description = @"Additional notification email list.", SerializedName = @"notificationEmailList", PossibleTypes = new [] { typeof(string) })] - public string[] NotificationEmailList { get => OrderItemUpdateParameterBody.NotificationEmailList ?? null /* arrayOf */; set => OrderItemUpdateParameterBody.NotificationEmailList = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter _orderItemUpdateParameterBody= new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemUpdateParameter(); - - /// Updates order item parameters. - private Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameter OrderItemUpdateParameterBody { get => this._orderItemUpdateParameterBody; set => this._orderItemUpdateParameterBody = value; } + public string[] NotificationEmailList { get => _orderItemUpdateParameterBody.NotificationEmailList ?? null /* arrayOf */; set => _orderItemUpdateParameterBody.NotificationEmailList = value; } /// /// The instance of the that the remote call will use. @@ -165,7 +164,7 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S Description = @"Customer preference.", SerializedName = @"preferences", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences Preference { get => OrderItemUpdateParameterBody.Preference ?? null /* object */; set => OrderItemUpdateParameterBody.Preference = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences Preference { get => _orderItemUpdateParameterBody.Preference ?? null /* object */; set => _orderItemUpdateParameterBody.Preference = value; } /// The URI for the proxy server to use [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] @@ -196,15 +195,15 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags Tag { get => OrderItemUpdateParameterBody.Tag ?? null /* object */; set => OrderItemUpdateParameterBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemUpdateParameterTags Tag { get => _orderItemUpdateParameterBody.Tag ?? null /* object */; set => _orderItemUpdateParameterBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -215,8 +214,8 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -227,6 +226,11 @@ public partial class UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded : global::S /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -252,7 +256,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.OrderItemUpdateParameterBody = this.OrderItemUpdateParameterBody; + clone._orderItemUpdateParameterBody = this._orderItemUpdateParameterBody; clone.IfMatch = this.IfMatch; return clone; } @@ -260,7 +264,24 @@ public Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Cmdlets.UpdateAzEdgeOrderIte /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -393,7 +414,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -410,7 +430,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.UpdateOrderItemViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, OrderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateOrderItemViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _orderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); } else { @@ -427,13 +447,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.UpdateOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, OrderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); + await this.Client.UpdateOrderItem(InputObject.OrderItemName ?? null, InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _orderItemUpdateParameterBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=OrderItemUpdateParameterBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_orderItemUpdateParameterBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -460,12 +480,27 @@ public UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IErrorResponse + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -487,14 +522,14 @@ public UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=OrderItemUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_orderItemUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=OrderItemUpdateParameterBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_orderItemUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -504,8 +539,8 @@ public UpdateAzEdgeOrderItem_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/AsyncOperationResponse.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/AsyncOperationResponse.cs index 7ed274baf93b..381f546381a5 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/AsyncOperationResponse.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/AsyncOperationResponse.cs @@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.Json.JsonNode.Parse(jsonText)); } @@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to a type /// parameter. /// /// the instance to check if it can be converted to the - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs index 659320c5a814..e138bb1aa8da 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs @@ -33,6 +33,9 @@ public class ExportHelpMarkdown : PSCmdlet [ValidateNotNullOrEmpty] public string ExamplesFolder { get; set; } + [Parameter()] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -41,7 +44,7 @@ protected override void ProcessRecord() var variantGroups = FunctionInfo.Select(fi => fi.BaseObject).Cast() .Join(helpInfos, fi => fi.Name, phi => phi.CmdletName, (fi, phi) => fi.ToVariants(phi)) .Select(va => new VariantGroup(ModuleInfo.Name, va.First().CmdletName, va, String.Empty)); - WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder); + WriteMarkdowns(variantGroups, ModuleInfo.ToModuleInfo(), DocsFolder, ExamplesFolder, AddComplexInterfaceInfo.IsPresent); } catch (Exception ee) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 3d79923576ad..82b8c189ea92 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -52,6 +52,9 @@ public class ExportProxyCmdlet : PSCmdlet [Parameter(Mandatory = true, ParameterSetName = "NoDocs")] public SwitchParameter ExcludeDocs { get; set; } + [Parameter(ParameterSetName = "Docs")] + public SwitchParameter AddComplexInterfaceInfo { get; set; } + protected override void ProcessRecord() { try @@ -163,7 +166,7 @@ protected override void ProcessRecord() var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder, AddComplexInterfaceInfo.IsPresent); } } } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index afdc05c894bf..fcc2f6b25b9c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -163,7 +163,7 @@ protected override void ProcessRecord() if (previewVersion != null) { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); } sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule EdgeOrder".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index 193fbd2a2bde..64cb48ba9932 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PowerShell { internal static class MarkdownRenderer { - public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder) + public static void WriteMarkdowns(IEnumerable variantGroups, PsModuleHelpInfo moduleHelpInfo, string docsFolder, string examplesFolder, bool AddComplexInterfaceInfo = true) { Directory.CreateDirectory(docsFolder); var markdownInfos = variantGroups.Where(vg => !vg.IsInternal).Select(vg => new MarkdownHelpInfo(vg, examplesFolder)).OrderBy(mhi => mhi.CmdletName).ToArray(); @@ -69,18 +69,26 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod } sb.Append($"## NOTES{Environment.NewLine}{Environment.NewLine}"); - sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); - foreach (var alias in markdownInfo.Aliases) + if (markdownInfo.Aliases.Any()) { - sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); } - if (markdownInfo.ComplexInterfaceInfos.Any()) + foreach (var alias in markdownInfo.Aliases) { - sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); } - foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + + if (AddComplexInterfaceInfo) { - sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + if (markdownInfo.ComplexInterfaceInfos.Any()) + { + sb.Append($"{ComplexParameterHeader}{Environment.NewLine}"); + } + foreach (var complexInterfaceInfo in markdownInfo.ComplexInterfaceInfos) + { + sb.Append($"{complexInterfaceInfo.ToNoteOutput(includeDashes: true, includeBackticks: true)}{Environment.NewLine}{Environment.NewLine}"); + } + } sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index d4a4be93c6bf..6193c9641014 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 0bd23f21d9a9..abbdaef35be6 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index b5cccd361281..9bf38df46be3 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -39,7 +39,7 @@ internal class MarkdownHelpInfo public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") { ExternalHelpFilename = externalHelpFilename; - ModuleName = variantGroup.ModuleName; + ModuleName = variantGroup.RootModuleName != "" ? variantGroup.RootModuleName : variantGroup.ModuleName; var helpInfo = variantGroup.HelpInfo; var commentInfo = variantGroup.CommentInfo; Schema = Version.Parse("2.0.0"); @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -154,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -213,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 7feaa9de0f0f..d69b885d29c7 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -168,18 +168,62 @@ public ParameterNameOutput(string parameterName, bool isLast) public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; } - internal class BeginOutput + internal class BaseOutput { public VariantGroup VariantGroup { get; } - public BeginOutput(VariantGroup variantGroup) + protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; } + public string ClearTelemetryContext() + { + return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; + } + } + + internal class BeginOutput : BaseOutput + { + public BeginOutput(VariantGroup variantGroup) : base(variantGroup) + { + } public string GetProcessCustomAttributesAtRuntime() { - return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() +{Indent}{Indent}}} +{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' +{Indent}{Indent}}} +"; + } + return ""; } public override string ToString() => $@"begin {{ {Indent}try {{ @@ -188,6 +232,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} {GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -195,6 +240,7 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} }} @@ -223,36 +269,94 @@ private string GetDefaultValuesStatements() var variantListString = defaultInfo.ParameterGroup.VariantNames.ToPsList(); var parameterName = defaultInfo.ParameterGroup.ParameterName; sb.AppendLine(); - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.Append($"{Indent}{Indent}}}"); + //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to + //override default value set in required readme + if ("SubscriptionId".Equals(parameterName)) + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ if ($_) {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }} }}"); + sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); + sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.AppendLine($"{Indent}{Indent}{Indent}}}"); + sb.Append($"{Indent}{Indent}}}"); + } + else + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}')) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } } return sb.ToString(); } } - internal class ProcessOutput + internal class ProcessOutput : BaseOutput { + public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetFinally() + { + if (IsAzure && !VariantGroup.IsInternal) + { + return $@" +{Indent}finally {{ +{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"process {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.Process($_) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} +{GetFinally()} }} - "; } - internal class EndOutput + internal class EndOutput : BaseOutput { + public EndOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}{Indent}}} +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId +"; + } + return ""; + } public override string ToString() => $@"end {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.End() +{GetTelemetry()} {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} -}} +}} "; } @@ -493,9 +597,9 @@ public static string ToSyntaxTypeName(this Type type) public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); - public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); - public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); @@ -524,7 +628,7 @@ string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool return ni.IsComplexInterface ? ni.ToNoteOutput(nestedIndent, includeDashes, includeBackticks, false) : RenderProperty(ni, nestedIndent, includeDashes, includeBackticks); - }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, !isFirst && includeBackticks)); + }).Prepend(RenderProperty(complexInterfaceInfo, currentIndent, !isFirst && includeDashes, includeBackticks)); return String.Join(Environment.NewLine, nested); } } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index a38298cd2f8e..62a6ef1ea851 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -30,6 +30,8 @@ public ProfileGroup(Variant[] variants, string profileName = NoProfiles) internal class VariantGroup { public string ModuleName { get; } + + public string RootModuleName {get => @"";} public string CmdletName { get; } public string CmdletVerb { get; } public string CmdletNoun { get; } @@ -385,7 +387,9 @@ public CommentInfo(VariantGroup variantGroup) helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); - OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}"; + // Use root module name in the help link + var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant(); + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}"; RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); } } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsAttributes.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsAttributes.cs index 0d1424081b18..30b709f8aa05 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsAttributes.cs @@ -48,6 +48,13 @@ public ProfileAttribute(params string[] profiles) } } + [AttributeUsage(AttributeTargets.Class)] + public class HttpPathAttribute : Attribute + { + public string Path { get; set; } + public string ApiVersion { get; set; } + } + [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] public class CategoryAttribute : Attribute { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsHelpers.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsHelpers.cs index a2e068356335..69cc730809ee 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsHelpers.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/BuildTime/PsHelpers.cs @@ -39,9 +39,10 @@ public static IEnumerable GetModuleCmdlets(params string[] modulePa public static IEnumerable GetScriptCmdlets(PSCmdlet cmdlet, string scriptFolder) { // https://stackoverflow.com/a/40969712/294804 + var wrappedFolder = scriptFolder.Contains("'") ? $@"""{scriptFolder}""" : $@"'{scriptFolder}'"; var getCmdletsCommand = $@" $currentFunctions = Get-ChildItem function: -Get-ChildItem -Path '{scriptFolder}' -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} +Get-ChildItem -Path {wrappedFolder} -Recurse -Include '*.ps1' -File | ForEach-Object {{ . $_.FullName }} Get-ChildItem function: | Where-Object {{ ($currentFunctions -notcontains $_) -and $_.CmdletBinding }} "; return cmdlet?.RunScript(getCmdletsCommand) ?? RunScript(getCmdletsCommand); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Customizations/IJsonSerializable.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Customizations/IJsonSerializable.cs index 8677ae87a31b..dd7f48abe32c 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Customizations/IJsonSerializable.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Customizations/IJsonSerializable.cs @@ -129,7 +129,7 @@ private static JsonNode TryToJsonValue(dynamic oValue) /// /// Serialize an object by using a variety of methods. /// - /// the object to be serialized. + /// the object to be serialized. /// the serialized JsonNode (if successful), otherwise, null internal static JsonNode ToJsonValue(object value) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/EventDataExtensions.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/EventDataExtensions.cs index 4f8f86c0134c..d3e2e0bbb373 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/EventDataExtensions.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/EventDataExtensions.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime { using System; - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] /// /// PowerShell-specific data on top of the llc# EventData /// @@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime /// Obviously, this code would need to be duplcated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] public partial class EventData : EventArgs { } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/ISendAsync.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/ISendAsync.cs index 3692d5f540b0..5d6f27444e5a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/ISendAsync.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/ISendAsync.cs @@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// Clones an HttpRequestMessage (without the content) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { @@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { /* **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); @@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } - + return clone; } @@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// Clones an HttpRequestMessage (including the content stream and content headers) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs index 26f7c57d8425..c6152249bacf 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttribute.cs @@ -21,7 +21,7 @@ public class GenericBreakingChangeAttribute : Attribute //The version the change is effective from, non mandatory public string DeprecateByVersion { get; } - public bool DeprecateByVersionSet { get; } = false; + public string DeprecateByAzVersion { get; } //The date on which the change comes in effect public DateTime ChangeInEfectByDate { get; } @@ -32,23 +32,18 @@ public class GenericBreakingChangeAttribute : Attribute //New way fo calling the cmdlet public string NewWay { get; set; } - public GenericBreakingChangeAttribute(string message) - { - _message = message; - } - - public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion) { _message = message; + this.DeprecateByAzVersion = deprecateByAzVersion; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; } - public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + public GenericBreakingChangeAttribute(string message, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) { _message = message; this.DeprecateByVersion = deprecateByVersion; - this.DeprecateByVersionSet = true; + this.DeprecateByAzVersion = deprecateByAzVersion; if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) { @@ -86,10 +81,8 @@ public void PrintCustomAttributeInfo(Action writeOutput) writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); } - if (DeprecateByVersionSet) - { - writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); - } + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByAzVersion, this.DeprecateByAzVersion)); + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); if (OldWay != null && NewWay != null) { @@ -114,18 +107,13 @@ public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute public string ReplacementCmdletName { get; set; } - public CmdletBreakingChangeAttribute() : - base(string.Empty) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { } - public CmdletBreakingChangeAttribute(string deprecateByVersione) : - base(string.Empty, deprecateByVersione) - { - } - - public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public CmdletBreakingChangeAttribute(string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { } @@ -146,20 +134,15 @@ protected override string GetAttributeSpecificMessage() public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute { public string[] ChangedParameterSet { set; get; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : - base(string.Empty) - { - ChangedParameterSet = changedParameterSet; - } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : - base(string.Empty, deprecateByVersione) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { ChangedParameterSet = changedParameterSet; } - public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { ChangedParameterSet = changedParameterSet; } @@ -185,6 +168,11 @@ public class PreviewMessageAttribute : Attribute { public string _message; + public DateTime EstimatedGaDate { get; } + + public bool IsEstimatedGaDateSet { get; } = false; + + public PreviewMessageAttribute() { this._message = Resources.PreviewCmdletMessage; @@ -192,12 +180,26 @@ public PreviewMessageAttribute() public PreviewMessageAttribute(string message) { - this._message = message; + this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message; } - public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet) + public PreviewMessageAttribute(string message, string estimatedDateOfGa) : this(message) { - psCmdlet.WriteWarning(this._message); + if (DateTime.TryParse(estimatedDateOfGa, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.EstimatedGaDate = result; + this.IsEstimatedGaDateSet = true; + } + } + + public void PrintCustomAttributeInfo(Action writeOutput) + { + writeOutput(this._message); + + if (IsEstimatedGaDateSet) + { + writeOutput(string.Format(Resources.PreviewCmdletETAMessage, this.EstimatedGaDate.ToShortDateString())); + } } public virtual bool IsApplicableToInvocation(InvocationInfo invocation) @@ -219,20 +221,14 @@ public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute public String NewParameterType { get; set; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : - base(string.Empty) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.NameOfParameterChanging = nameOfParameterChanging; } - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) - { - this.NameOfParameterChanging = nameOfParameterChanging; - } - - public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.NameOfParameterChanging = nameOfParameterChanging; } @@ -276,7 +272,7 @@ protected override string GetAttributeSpecificMessage() /// then the attribbute is applicable /// If the invocationInfo is null we return true /// - /// + /// /// bool public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) { @@ -298,20 +294,14 @@ public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute public string[] NewOutputProperties { get; set; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : - base(string.Empty) - { - this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; - } - - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : - base(string.Empty, deprecateByVersion) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } - public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : - base(string.Empty, deprecateByVersion, changeInEfectByDate) + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByAzVersion, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByAzVersion, deprecateByVersion, changeInEfectByDate) { this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttributeHelper.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttributeHelper.cs index e0e5ad67ff08..73641176c73f 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttributeHelper.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/MessageAttributeHelper.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Runtime using System.Threading.Tasks; public class MessageAttributeHelper { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; @@ -34,7 +35,7 @@ public class MessageAttributeHelper * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, * We only process the Parameter beaking change attributes attached only params listed in this list (if present) * */ - public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet, bool showPreviewMessage = true) { bool supressWarningOrError = false; @@ -52,37 +53,53 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv //Do not process the attributes at runtime... The env variable to override the warning messages is set return; } + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); + } + + ProcessBreakingChangeAttributesAtRuntime(commandInfo, invocationInfo, parameterSet, psCmdlet); + + } + private static void ProcessBreakingChangeAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); - Action appendBreakingChangeInfo = (string s) => sb.Append(s); + Action appendAttributeMessage = (string s) => sb.Append(s); if (attributes != null && attributes.Count > 0) { - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); foreach (GenericBreakingChangeAttribute attribute in attributes) { - attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } - appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + appendAttributeMessage(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); psCmdlet.WriteWarning(sb.ToString()); } + } + + public static void ProcessPreviewMessageAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + StringBuilder sb = new StringBuilder(); + Action appendAttributeMessage = (string s) => sb.Append(s); if (previewAttributes != null && previewAttributes.Count > 0) { foreach (PreviewMessageAttribute attribute in previewAttributes) { - attribute.PrintCustomAttributeInfo(psCmdlet); + attribute.PrintCustomAttributeInfo(appendAttributeMessage); } + psCmdlet.WriteWarning(sb.ToString()); } } - /** * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) * And returns all the deprecation attributes attached to it @@ -124,6 +141,12 @@ private static IEnumerable GetAllBreakingChangeA } return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); } + + public static bool ContainsPreviewAttribute(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + return GetAllPreviewAttributesInType(commandInfo, invocationInfo)?.Count() > 0; + } + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) { List attributeList = new List(); diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/PipelineMocking.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/PipelineMocking.cs index 1c1ae36b3214..05348a677c68 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/PipelineMocking.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/PipelineMocking.cs @@ -259,4 +259,4 @@ public async Task SendAsync(HttpRequestMessage request, IEv } } } -} \ No newline at end of file +} diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.Designer.cs b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.Designer.cs index 09e02872c4af..1edb0c00e20a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.Designer.cs +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.Designer.cs @@ -734,7 +734,7 @@ public static string BreakingChangesAttributesInEffectByDateMessage } /// - /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// Looks up a localized string similar to Note :The change is expected to take effect from version : '{0}' /// ///. /// @@ -746,6 +746,19 @@ public static string BreakingChangesAttributesInEffectByVersion } } + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from az version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByAzVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByAzVersion", resourceCulture); + } + } + /// /// Looks up a localized string similar to ```powershell ///# Old @@ -3122,7 +3135,16 @@ public static string PortalInstructionsGit } /// - /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription. + /// Looks up a localized string similar to The estimated generally available date is '{0}'.. + /// + public static string PreviewCmdletETAMessage { + get { + return ResourceManager.GetString("PreviewCmdletETAMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. Its behavior is subject to change based on customer feedback.. /// public static string PreviewCmdletMessage { @@ -5630,4 +5652,4 @@ public static string YesHint } } } -} +} \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx index 598cd53e958a..a08a2e50172b 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx +++ b/src/EdgeOrder/EdgeOrder.Autorest/generated/runtime/Properties/Resources.resx @@ -1705,7 +1705,7 @@ Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can -- The change is expected to take effect from the version : '{0}' +- The change is expected to take effect from version : '{0}' ```powershell @@ -1736,6 +1736,12 @@ The type of the parameter is changing from '{0}' to '{1}'. Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. - This cmdlet is in preview. The functionality may not be available in the selected subscription. + This cmdlet is in preview. Its behavior is subject to change based on customer feedback. + + + The estimated generally available date is '{0}'. + + + - The change is expected to take effect from Az version : '{0}' \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Az.EdgeOrder.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Az.EdgeOrder.md new file mode 100644 index 000000000000..abf0a79b9c35 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Az.EdgeOrder.md @@ -0,0 +1,75 @@ +--- +Module Name: Az.EdgeOrder +Module Guid: ffbed74a-2473-42d2-95fc-73adffd13d49 +Download Help Link: https://learn.microsoft.com/powershell/module/az.edgeorder +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.EdgeOrder Module +## Description +Microsoft Azure PowerShell: EdgeOrder cmdlets + +## Az.EdgeOrder Cmdlets +### [Get-AzEdgeOrder](Get-AzEdgeOrder.md) +Gets an order. + +### [Get-AzEdgeOrderAddress](Get-AzEdgeOrderAddress.md) +Gets information about the specified address. + +### [Get-AzEdgeOrderConfiguration](Get-AzEdgeOrderConfiguration.md) +This method provides the list of configurations for the given product family, product line and product under subscription. + +### [Get-AzEdgeOrderItem](Get-AzEdgeOrderItem.md) +Gets an order item. + +### [Get-AzEdgeOrderProductFamily](Get-AzEdgeOrderProductFamily.md) +This method provides the list of product families for the given subscription. + +### [Get-AzEdgeOrderProductFamilyMetadata](Get-AzEdgeOrderProductFamilyMetadata.md) +This method provides the list of product families metadata for the given subscription. + +### [Invoke-AzEdgeOrderItemCancellation](Invoke-AzEdgeOrderItemCancellation.md) +Cancel order item. + +### [Invoke-AzEdgeOrderReturnOrderItem](Invoke-AzEdgeOrderReturnOrderItem.md) +Return order item. + +### [New-AzEdgeOrderAddress](New-AzEdgeOrderAddress.md) +Creates a new address with the specified parameters. +Existing address can be updated with this API + +### [New-AzEdgeOrderContactDetailsObject](New-AzEdgeOrderContactDetailsObject.md) +Create an in-memory object for ContactDetails. + +### [New-AzEdgeOrderFilterablePropertyObject](New-AzEdgeOrderFilterablePropertyObject.md) +Create an in-memory object for FilterableProperty. + +### [New-AzEdgeOrderHierarchyInformationObject](New-AzEdgeOrderHierarchyInformationObject.md) +Create an in-memory object for HierarchyInformation. + +### [New-AzEdgeOrderItem](New-AzEdgeOrderItem.md) +Creates an order item. +Existing order item cannot be updated with this api and should instead be updated with the Update order item API. + +### [New-AzEdgeOrderOrderItemDetailsObject](New-AzEdgeOrderOrderItemDetailsObject.md) +Create an in-memory object for OrderItemDetails. + +### [New-AzEdgeOrderPreferencesObject](New-AzEdgeOrderPreferencesObject.md) +Create an in-memory object for Preferences. + +### [New-AzEdgeOrderShippingAddressObject](New-AzEdgeOrderShippingAddressObject.md) +Create an in-memory object for ShippingAddress. + +### [Remove-AzEdgeOrderAddress](Remove-AzEdgeOrderAddress.md) +Deletes an address. + +### [Remove-AzEdgeOrderItem](Remove-AzEdgeOrderItem.md) +Deletes an order item. + +### [Update-AzEdgeOrderAddress](Update-AzEdgeOrderAddress.md) +Updates the properties of an existing address. + +### [Update-AzEdgeOrderItem](Update-AzEdgeOrderItem.md) +Updates the properties of an existing order item. + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrder.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrder.md new file mode 100644 index 000000000000..b6ad3bcf1227 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrder.md @@ -0,0 +1,149 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorder +schema: 2.0.0 +--- + +# Get-AzEdgeOrder + +## SYNOPSIS +Gets an order. + +## SYNTAX + +### List (Default) +``` +Get-AzEdgeOrder [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzEdgeOrder -Location -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzEdgeOrder -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets an order. + +## EXAMPLES + +### Example 1: Get order details +```powershell +$order = Get-AzEdgeOrder -Name pwOrderItem11 -SubscriptionId "SubscriptionId" -Location "eastus" -ResourceGroupName "resourceGroupName" +$order | Format-List +``` + +```output +CurrentStageDisplayName : +CurrentStageName : Placed +CurrentStageStartTime : 11/16/2021 10:35:00 AM +CurrentStageStatus : Succeeded +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 +Name : pwOrderItem11 +OrderItemId : {/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell} +OrderStageHistory : {, } +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Type : Microsoft.EdgeOrder/orders +``` + +Get order details + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The name of Azure region. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the order + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: OrderName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderAddress.md new file mode 100644 index 000000000000..ffc609b9dc4b --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderAddress.md @@ -0,0 +1,171 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderaddress +schema: 2.0.0 +--- + +# Get-AzEdgeOrderAddress + +## SYNOPSIS +Gets information about the specified address. + +## SYNTAX + +### List (Default) +``` +Get-AzEdgeOrderAddress [-SubscriptionId ] [-Filter ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzEdgeOrderAddress -ResourceGroupName [-SubscriptionId ] [-Filter ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets information about the specified address. + +## EXAMPLES + +### Example 1: Get address details +```powershell +$address = Get-AzEdgeOrderAddress -SubscriptionId SubscriptionId -ResourceGroupName "resourceGroupName" +$address | Format-List +``` + +```output +AddressValidationStatus : Valid +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress +Location : eastus +Name : pwvalidaddress +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/addresses + +AddressValidationStatus : Valid +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/pwvalidaddress215 +Location : eastus +Name : pwvalidaddress215 +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/addresses + +AddressValidationStatus : Valid +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +Id : /subscriptions/"SubscriptionId"/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress +Location : eastus +Name : TestPwAddress +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/addresses +``` + +Get address details + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +$filter is supported to filter based on shipping address properties. +Filter supports only equals operation. + +```yaml +Type: System.String +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the address Resource within the specified resource group. +address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: AddressName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderConfiguration.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderConfiguration.md new file mode 100644 index 000000000000..0731f2bbcf40 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderConfiguration.md @@ -0,0 +1,155 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderconfiguration +schema: 2.0.0 +--- + +# Get-AzEdgeOrderConfiguration + +## SYNOPSIS +This method provides the list of configurations for the given product family, product line and product under subscription. + +## SYNTAX + +``` +Get-AzEdgeOrderConfiguration -ConfigurationFilter [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This method provides the list of configurations for the given product family, product line and product under subscription. + +## EXAMPLES + +### Example 1: Get configuration details +```powershell +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$configuration = Get-AzEdgeOrderConfiguration -SubscriptionId SubscriptionId -ConfigurationFilter @(@{"HierarchyInformation"=$HierarchyInformation; "FilterableProperty"= @($filterableProperty)}) +$configuration +``` + +```output +AvailabilityInformationAvailabilityStage : Available +AvailabilityInformationDisabledReason : None +AvailabilityInformationDisabledReasonMessage : +CostInformationBillingInfoUrl : https://aka.ms/edgeHWcenter-pricinglink-custom +CostInformationBillingMeterDetail : {RentalFee, ShippingFee} +DescriptionAttribute : {} +DescriptionKeyword : {GPU} +DescriptionLink : {} +DescriptionLongDescription : +DescriptionShortDescription : +DescriptionType : Base +DimensionDepth : 2 +DimensionHeight : 15 +DimensionLength : 50 +DimensionLengthHeightUnit : IN +DimensionWeight : 50 +DimensionWeightUnit : LBS +DimensionWidth : 5 +DisplayName : Azure Stack Edge Pro - 2 GPU +FilterableProperty : {Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty} +HierarchyInformation : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation +ImageInformation : {} +Specification : {Usable compute, Usable memory, Usable storage} +``` + +This command get insights of selected configuration. +Make sure you run registerProvider on Microsoft.EdgeOrder before running this command. + +## PARAMETERS + +### -ConfigurationFilter +Holds details about product hierarchy information and filterable property. +To construct, see NOTES section for CONFIGURATIONFILTER properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfigurationFilters[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IConfiguration + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderItem.md new file mode 100644 index 000000000000..13f376109fda --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderItem.md @@ -0,0 +1,173 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderitem +schema: 2.0.0 +--- + +# Get-AzEdgeOrderItem + +## SYNOPSIS +Gets an order item. + +## SYNTAX + +### List (Default) +``` +Get-AzEdgeOrderItem [-SubscriptionId ] [-Expand ] [-Filter ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] [-Expand ] + [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzEdgeOrderItem -ResourceGroupName [-SubscriptionId ] [-Expand ] + [-Filter ] [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets an order item. + +## EXAMPLES + +### Example 1: Get orderItem details +```powershell +$orderItem = Get-AzEdgeOrderItem -Name examplePowershell -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" +$ordderItem | Format-List +``` + +```output +ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +ForwardAddressValidationStatus : Valid +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/OrderItem-211115074927900249117427 +Location : eastus +Name : OrderItem-211115074927900249117427 +OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/Order-211115074927650235470998 +OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails +ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +ReturnAddressValidationStatus : Valid +StartTime : 11/15/2021 7:49:29 AM +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/orderItems +``` + +Get orderItem details + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expand +$expand is supported on device details, forward shipping details and reverse shipping details parameters. +Each of these can be provided as a comma separated list. +Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +$filter is supported to filter based on order id. +Filter supports only equals operation. + +```yaml +Type: System.String +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the order item + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: OrderItemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamily.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamily.md new file mode 100644 index 000000000000..eeb80051aebe --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamily.md @@ -0,0 +1,149 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderproductfamily +schema: 2.0.0 +--- + +# Get-AzEdgeOrderProductFamily + +## SYNOPSIS +This method provides the list of product families for the given subscription. + +## SYNTAX + +``` +Get-AzEdgeOrderProductFamily -FilterableProperty [-SubscriptionId ] [-Expand ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +This method provides the list of product families for the given subscription. + +## EXAMPLES + +### Example 1: Get details of specific productFamilies +```powershell +$familyDetails = Get-AzEdgeOrderProductFamily -SubscriptionId SubscriptionId -FilterableProperty @{"azurestackedge"=@($filterableProperty)} -Expand "configurations" +$familyDetails.ProductLine.Product.Configuration.HierarchyInformation +``` + +```output +ConfigurationName ProductFamilyName ProductLineName ProductName +----------------- ----------------- --------------- ----------- +edgep_high azurestackedge azurestackedge azurestackedgegpu +edgepr_base azurestackedge azurestackedge azurestackedgepror +edgemr_mini azurestackedge azurestackedge azurestackedgeminir +``` + +This command get insights of filtered family. +Make sure you run registerProvider on Microsoft.EdgeOrder before running this command. +You can run Get-AzEdgeOrderConfiguration to get details of each configuration + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Expand +$expand is supported on configurations parameter for product, which provides details on the configurations for the product. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FilterableProperty +Dictionary of filterable properties on product family. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamily + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamilyMetadata.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamilyMetadata.md new file mode 100644 index 000000000000..31d2bd811bae --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Get-AzEdgeOrderProductFamilyMetadata.md @@ -0,0 +1,120 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderproductfamilymetadata +schema: 2.0.0 +--- + +# Get-AzEdgeOrderProductFamilyMetadata + +## SYNOPSIS +This method provides the list of product families metadata for the given subscription. + +## SYNTAX + +``` +Get-AzEdgeOrderProductFamilyMetadata [-SubscriptionId ] [-DefaultProfile ] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +This method provides the list of product families metadata for the given subscription. + +## EXAMPLES + +### Example 1: Gets available product families on procured subscription +```powershell +$productFamilyMeta = Get-AzEdgeOrderProductFamilyMetadata -SubscriptionId SubscriptionId +$productFamilyMeta.HierarchyInformation +``` + +```output +ConfigurationName ProductFamilyName ProductLineName ProductName +----------------- ----------------- --------------- ----------- + azurestackedge + azurestackhub +``` + +This command gets product families available on procured subscription. + +Make sure registerProvider on Microsoft.EdgeOrder is done before running this command. + +To get details of any family use Get-AzEdgeOrderProductFamily command + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductFamiliesMetadataDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderItemCancellation.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderItemCancellation.md new file mode 100644 index 000000000000..28d4f5d8f6ab --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderItemCancellation.md @@ -0,0 +1,194 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/invoke-azedgeorderitemcancellation +schema: 2.0.0 +--- + +# Invoke-AzEdgeOrderItemCancellation + +## SYNOPSIS +Cancel order item. + +## SYNTAX + +### CancelExpanded (Default) +``` +Invoke-AzEdgeOrderItemCancellation -Name -ResourceGroupName -Reason + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### CancelViaIdentityExpanded +``` +Invoke-AzEdgeOrderItemCancellation -InputObject -Reason + [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Cancel order item. + +## EXAMPLES + +### Example 1: Cancel orderItem +```powershell +Invoke-AzEdgeOrderItemCancellation -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -Reason "Test Job" -SubscriptionId SubscriptionId +``` + +Invoke orderItem cancellation + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: CancelViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the order item + +```yaml +Type: System.String +Parameter Sets: CancelExpanded +Aliases: OrderItemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Reason +Reason for cancellation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CancelExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CancelExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderReturnOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderReturnOrderItem.md new file mode 100644 index 000000000000..7cb705ffc7bb --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Invoke-AzEdgeOrderReturnOrderItem.md @@ -0,0 +1,290 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/invoke-azedgeorderreturnorderitem +schema: 2.0.0 +--- + +# Invoke-AzEdgeOrderReturnOrderItem + +## SYNOPSIS +Return order item. + +## SYNTAX + +### ReturnExpanded (Default) +``` +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName -ResourceGroupName -ReturnReason + [-SubscriptionId ] [-ReturnAddressContactDetail ] + [-ReturnAddressShippingAddress ] [-ServiceTag ] [-ShippingBoxRequired] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### ReturnViaIdentityExpanded +``` +Invoke-AzEdgeOrderReturnOrderItem -InputObject -ReturnReason + [-ReturnAddressContactDetail ] [-ReturnAddressShippingAddress ] + [-ServiceTag ] [-ShippingBoxRequired] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Return order item. + +## EXAMPLES + +### Example 1: Command to initiate orderItem return +```powershell +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName "OrderItem-211115074927900249117427" -ResourceGroupName "resourceGroupName" -ReturnReason "Test Order Return" -SubscriptionId "SubscriptionId" +``` + +Invoke orderItem return + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: ReturnViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrderItemName +The name of the order item + +```yaml +Type: System.String +Parameter Sets: ReturnExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: ReturnExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnAddressContactDetail +Contact details for the address +To construct, see NOTES section for RETURNADDRESSCONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnAddressShippingAddress +Shipping details for the address +To construct, see NOTES section for RETURNADDRESSSHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ReturnReason +Return Reason. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServiceTag +Service tag (located on the bottom-right corner of the device) + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingBoxRequired +Shipping Box required + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: ReturnExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderAddress.md new file mode 100644 index 000000000000..9b138b2a30c7 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderAddress.md @@ -0,0 +1,262 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/new-azedgeorderaddress +schema: 2.0.0 +--- + +# New-AzEdgeOrderAddress + +## SYNOPSIS +Creates a new address with the specified parameters. +Existing address can be updated with this API + +## SYNTAX + +``` +New-AzEdgeOrderAddress -Name -ResourceGroupName -ContactDetail + -Location [-SubscriptionId ] [-ShippingAddress ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates a new address with the specified parameters. +Existing address can be updated with this API + +## EXAMPLES + +### Example 1: Create a new address +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$DebugPreference = "Continue" +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } +$address = New-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -ContactDetail $contactDetail -SubscriptionId SubscriptionId -ShippingAddress $ShippingDetails -Location "eastus" +$address | Format-List +``` + +```output +AddressValidationStatus : Valid +ContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/addresses/TestPwAddress +Location : eastus +Name : TestPwAddress +ShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/addresses +``` + +Creates a new address. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetail +Contact details for the address +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the address Resource within the specified resource group. +address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: AddressName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping details for the address +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderContactDetailsObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderContactDetailsObject.md new file mode 100644 index 000000000000..692da4bb4355 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderContactDetailsObject.md @@ -0,0 +1,129 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderContactDetailsObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderContactDetailsObject + +## SYNOPSIS +Create an in-memory object for ContactDetails. + +## SYNTAX + +``` +New-AzEdgeOrderContactDetailsObject -ContactName -EmailList -Phone + [-Mobile ] [-PhoneExtension ] [] +``` + +## DESCRIPTION +Create an in-memory object for ContactDetails. + +## EXAMPLES + +### Example 1: Contact details object +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +``` + +```output +ContactName : random +EmailList : {"emailId"} +Mobile : +Phone : 1234567890 +PhoneExtension : +``` + +Creates a in-memory contact details object + +## PARAMETERS + +### -ContactName +Contact name of the person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EmailList +List of Email-ids to be notified about job progress. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Mobile +Mobile number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Phone +Phone number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PhoneExtension +Phone extension number of the contact person. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderFilterablePropertyObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderFilterablePropertyObject.md new file mode 100644 index 000000000000..37a09594f41b --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderFilterablePropertyObject.md @@ -0,0 +1,82 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderFilterablePropertyObject + +## SYNOPSIS +Create an in-memory object for FilterableProperty. + +## SYNTAX + +``` +New-AzEdgeOrderFilterablePropertyObject -SupportedValue -Type + [] +``` + +## DESCRIPTION +Create an in-memory object for FilterableProperty. + +## EXAMPLES + +### Example 1: Filterable property object +```powershell +$filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") +$filterableProperty | Format-List +``` + +```output +SupportedValue : {US} +Type : ShipToCountries +``` + +ShipToCountries is mandatory filterable type, SupportedValue can be list of 2 letter valid ISO country codes. + +## PARAMETERS + +### -SupportedValue +Values to be filtered. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Type +Type of product filter. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.SupportedFilterTypes +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.FilterableProperty + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderHierarchyInformationObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderHierarchyInformationObject.md new file mode 100644 index 000000000000..5aed20d40325 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderHierarchyInformationObject.md @@ -0,0 +1,114 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderHierarchyInformationObject + +## SYNOPSIS +Create an in-memory object for HierarchyInformation. + +## SYNTAX + +``` +New-AzEdgeOrderHierarchyInformationObject [-ConfigurationName ] [-ProductFamilyName ] + [-ProductLineName ] [-ProductName ] [] +``` + +## DESCRIPTION +Create an in-memory object for HierarchyInformation. + +## EXAMPLES + +### Example 1: Creates hierarchy information object +```powershell +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$HierarchyInformation | Format-List +``` + +```output +ConfigurationName : EdgeP_High +ProductFamilyName : azurestackedge +ProductLineName : azurestackedge +ProductName : azurestackedgegpu +``` + +Creates a in-memory hierarchy information object + +## PARAMETERS + +### -ConfigurationName +Represents configuration name that uniquely identifies configuration. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProductFamilyName +Represents product family name that uniquely identifies product family. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProductLineName +Represents product line name that uniquely identifies product line. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProductName +Represents product name that uniquely identifies product. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.HierarchyInformation + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderItem.md new file mode 100644 index 000000000000..13de43019baa --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderItem.md @@ -0,0 +1,323 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/new-azedgeorderitem +schema: 2.0.0 +--- + +# New-AzEdgeOrderItem + +## SYNOPSIS +Creates an order item. +Existing order item cannot be updated with this api and should instead be updated with the Update order item API. + +## SYNTAX + +``` +New-AzEdgeOrderItem -Name -ResourceGroupName -ForwardAddressContactDetail + -Location -OrderId -OrderItemDetail [-SubscriptionId ] + [-ForwardShippingAddress ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates an order item. +Existing order item cannot be updated with this api and should instead be updated with the Update order item API. + +## EXAMPLES + +### Example 1: Creates a new orderItem +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName ContactName -EmailList @("emailId") -Phone Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName ResourceGroup -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails + +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$DebugPreference = "Continue" +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } +$orderItem = New-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11" -OrderItemDetail $details -SubscriptionId SubscriptionId -ForwardShippingAddress $ShippingDetails +$orderItem | Format-List +``` + +```output +ForwardAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +ForwardAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +ForwardAddressValidationStatus : Valid +Id : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/orderItems/examplePowershell +Location : eastus +Name : examplePowershell +OrderId : /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwOrderItem11 +OrderItemDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails +ReturnAddressContactDetail : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ContactDetails +ReturnAddressShippingAddress : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress +ReturnAddressValidationStatus : +StartTime : 11/16/2021 10:34:51 AM +SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData +Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags +Type : Microsoft.EdgeOrder/orderItems + +``` + +Creates a new orderItem. + +### Example 2: Creates a new orderItem with preference set for transport, encryption and management resource +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList $env.EmailList -Phone $env.Phone +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 $env.StreetAddress1 -StateOrProvince $env.StateOrProvince -Country $env.Country -City $env.City -PostalCode $env.PostalCode -AddressType $env.AddressType +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} -Preference $preference +New-AzEdgeOrderItem -Name "OrderItemNameWithPref" -ResourceGroupName "resourceGroupName" -ForwardAddressContactDetail $contactDetail -Location "eastus" -OrderId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.EdgeOrder/locations/eastus/orders/pwPrefOrder" -OrderItemDetail $details -SubscriptionId $env.SubscriptionId -ForwardShippingAddress $ShippingDetails +``` + +```output +Location Name Type +-------- ---- ---- +eastus OrderItemNameWithPref Microsoft.EdgeOrder/orderItems +``` + +Creates a new orderItem with preference set for transport, encryption and management resource + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardAddressContactDetail +Contact details for the address +To construct, see NOTES section for FORWARDADDRESSCONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardShippingAddress +Shipping details for the address +To construct, see NOTES section for FORWARDSHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the order item + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: OrderItemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrderId +Id of the order to which order item belongs to + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrderItemDetail +Represents order item details. +To construct, see NOTES section for ORDERITEMDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderOrderItemDetailsObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderOrderItemDetailsObject.md new file mode 100644 index 000000000000..a259f1010e08 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderOrderItemDetailsObject.md @@ -0,0 +1,109 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderOrderItemDetailsObject + +## SYNOPSIS +Create an in-memory object for OrderItemDetails. + +## SYNTAX + +``` +New-AzEdgeOrderOrderItemDetailsObject -OrderItemType -ProductDetail + [-NotificationEmailList ] [-Preference ] [] +``` + +## DESCRIPTION +Create an in-memory object for OrderItemDetails. + +## EXAMPLES + +### Example 1: Creates orderItemDetails object. +```powershell +$HierarchyInformation=New-AzEdgeOrderHierarchyInformationObject -ProductFamilyName "azurestackedge" -ProductLineName "azurestackedge" -ProductName "azurestackedgegpu" -ConfigurationName "EdgeP_High" +$details = New-AzEdgeOrderOrderItemDetailsObject -OrderItemType "Purchase" -ProductDetail @{"HierarchyInformation"=$HierarchyInformation} +``` + +Create an in-memory object for OrderItemDetails. + +## PARAMETERS + +### -NotificationEmailList +Additional notification email list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrderItemType +Order item type. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.OrderItemType +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Customer notification Preferences. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProductDetail +Unique identifier for configuration. +To construct, see NOTES section for PRODUCTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IProductDetails +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.OrderItemDetails + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderPreferencesObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderPreferencesObject.md new file mode 100644 index 000000000000..2d947d72b7a6 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderPreferencesObject.md @@ -0,0 +1,112 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderPreferencesObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderPreferencesObject + +## SYNOPSIS +Create an in-memory object for Preferences. + +## SYNTAX + +``` +New-AzEdgeOrderPreferencesObject [-EncryptionPreference ] + [-ManagementResourcePreference ] + [-NotificationPreference ] [-TransportPreference ] + [] +``` + +## DESCRIPTION +Create an in-memory object for Preferences. + +## EXAMPLES + +### Example 1: Create a preference object +```powershell +$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"} +``` + +Creates a in-memory preference object to set transport, encryption and management resource preference. + +## PARAMETERS + +### -EncryptionPreference +Preferences related to the Encryption. +To construct, see NOTES section for ENCRYPTIONPREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IEncryptionPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ManagementResourcePreference +Preferences related to the Management resource. +To construct, see NOTES section for MANAGEMENTRESOURCEPREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IManagementResourcePreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationPreference +Notification preferences. +To construct, see NOTES section for NOTIFICATIONPREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.INotificationPreference[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -TransportPreference +Preferences related to the shipment logistics of the order. +To construct, see NOTES section for TRANSPORTPREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ITransportPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.Preferences + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderShippingAddressObject.md b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderShippingAddressObject.md new file mode 100644 index 000000000000..fd7e138e5948 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/New-AzEdgeOrderShippingAddressObject.md @@ -0,0 +1,212 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderShippingAddressObject +schema: 2.0.0 +--- + +# New-AzEdgeOrderShippingAddressObject + +## SYNOPSIS +Create an in-memory object for ShippingAddress. + +## SYNTAX + +``` +New-AzEdgeOrderShippingAddressObject -Country -StreetAddress1 [-AddressType ] + [-City ] [-CompanyName ] [-PostalCode ] [-StateOrProvince ] + [-StreetAddress2 ] [-StreetAddress3 ] [-ZipExtendedCode ] [] +``` + +## DESCRIPTION +Create an in-memory object for ShippingAddress. + +## EXAMPLES + +### Example 1: Creates shipping address object +```powershell +$ShippingDetails = New-AzEdgeOrderShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" + +$ShippingDetails | Format-List +``` + +```output +AddressType : Commercial +City : San Francisco +CompanyName : +Country : US +PostalCode : 94107 +StateOrProvince : CA +StreetAddress1 : 101 TOWNSEND ST +StreetAddress2 : +StreetAddress3 : +ZipExtendedCode : +``` + +Creates a in-memory shipping address object + +## PARAMETERS + +### -AddressType +Type of address. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Support.AddressType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -City +Name of the City. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CompanyName +Name of the company. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Country +Name of the Country. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PostalCode +Postal code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StateOrProvince +Name of the State or Province. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress1 +Street Address line 1. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress2 +Street Address line 2. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StreetAddress3 +Street Address line 3. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ZipExtendedCode +Extended Zip Code. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.ShippingAddress + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/README.md b/src/EdgeOrder/EdgeOrder.Autorest/help/README.md new file mode 100644 index 000000000000..8dc1788c33e9 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.EdgeOrder` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.EdgeOrder` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderAddress.md new file mode 100644 index 000000000000..b3ac67d7110b --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderAddress.md @@ -0,0 +1,210 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/remove-azedgeorderaddress +schema: 2.0.0 +--- + +# Remove-AzEdgeOrderAddress + +## SYNOPSIS +Deletes an address. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzEdgeOrderAddress -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an address. + +## EXAMPLES + +### Example 1: Delete address +```powershell +Remove-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId +``` + +Delete Address + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the address Resource within the specified resource group. +address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: AddressName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderItem.md new file mode 100644 index 000000000000..5f1eb9f0b17e --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Remove-AzEdgeOrderItem.md @@ -0,0 +1,209 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/remove-azedgeorderitem +schema: 2.0.0 +--- + +# Remove-AzEdgeOrderItem + +## SYNOPSIS +Deletes an order item. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzEdgeOrderItem -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes an order item. + +## EXAMPLES + +### Example 1: Delete orderItem +```powershell +Remove-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId +``` + +Delete orderItem. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the order item + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: OrderItemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderAddress.md new file mode 100644 index 000000000000..2f94e4d9a969 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderAddress.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/update-azedgeorderaddress +schema: 2.0.0 +--- + +# Update-AzEdgeOrderAddress + +## SYNOPSIS +Updates the properties of an existing address. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] + [-ContactDetail ] [-ShippingAddress ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzEdgeOrderAddress -InputObject [-ContactDetail ] + [-ShippingAddress ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates the properties of an existing address. + +## EXAMPLES + +### Example 1: Update address details +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } +$updatedContactInAddress = Update-AzEdgeOrderAddress -Name "TestPwAddress" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ContactDetail $contactDetail -ShippingAddress $ShippingDetails +$updatedContactInAddress.ContactDetail.ContactName +``` + +```output +ContactName2 +``` + +Update address details. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ContactDetail +Contact details for the address +To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the address Resource within the specified resource group. +address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: AddressName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ShippingAddress +Shipping details for the address +To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The list of key value pairs that describe the resource. +These tags can be used in viewing and grouping this resource (across resource groups). + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IAddressResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderItem.md new file mode 100644 index 000000000000..87bd21579b75 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/help/Update-AzEdgeOrderItem.md @@ -0,0 +1,300 @@ +--- +external help file: +Module Name: Az.EdgeOrder +online version: https://learn.microsoft.com/powershell/module/az.edgeorder/update-azedgeorderitem +schema: 2.0.0 +--- + +# Update-AzEdgeOrderItem + +## SYNOPSIS +Updates the properties of an existing order item. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] + [-ForwardAddressContactDetail ] [-ForwardAddressShippingAddress ] + [-NotificationEmailList ] [-Preference ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzEdgeOrderItem -InputObject [-ForwardAddressContactDetail ] + [-ForwardAddressShippingAddress ] [-NotificationEmailList ] + [-Preference ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Updates the properties of an existing order item. + +## EXAMPLES + +### Example 1: Update orderItem +```powershell +$contactDetail = New-AzEdgeOrderContactDetailsObject -ContactName "ContactName2" -EmailList @("emailId") -Phone Phone +$DebugPreference = "Continue" +# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when update command fails. +# { +# "Error": { +# "Code": "StaticValidationGenericCountryCodeHasInvalidLength", +# "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.", +# "Details": [ +# null +# ], +# "Target": null +# } +# } +$updatedOrderItem = Update-AzEdgeOrderItem -Name "examplePowershell" -ResourceGroupName "resourceGroupName" -SubscriptionId SubscriptionId -ForwardAddressContactDetail $contactDetail + +$updatedOrderItem.ForwardAddressContactDetail | Format-List +``` + +```output +ContactName : ContactName2 +EmailList : {useremailId} +Mobile : +Phone : 1234567891 +PhoneExtension : +``` + +Update orderItem details. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardAddressContactDetail +Contact details for the address +To construct, see NOTES section for FORWARDADDRESSCONTACTDETAIL properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IContactDetails +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForwardAddressShippingAddress +Shipping details for the address +To construct, see NOTES section for FORWARDADDRESSSHIPPINGADDRESS properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IShippingAddress +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the order item + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: OrderItemName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NotificationEmailList +Additional notification email list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Preference +Customer preference. +To construct, see NOTES section for PREFERENCE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IPreferences +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +The list of key value pairs that describe the resource. +These tags can be used in viewing and grouping this resource (across resource groups). + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.IEdgeOrderIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20211201.IOrderItemResource + +## NOTES + +## RELATED LINKS + diff --git a/src/EdgeOrder/EdgeOrder.Autorest/internal/Az.EdgeOrder.internal.psm1 b/src/EdgeOrder/EdgeOrder.Autorest/internal/Az.EdgeOrder.internal.psm1 index ec0e43f261bd..36434f0c2049 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/internal/Az.EdgeOrder.internal.psm1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/internal/Az.EdgeOrder.internal.psm1 @@ -24,12 +24,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/EdgeOrder/EdgeOrder.Autorest/internal/Get-AzEdgeOrderOperation.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/internal/Get-AzEdgeOrderOperation.ps1 index 539f6182f819..c5466d1cebc9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/internal/Get-AzEdgeOrderOperation.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/internal/Get-AzEdgeOrderOperation.ps1 @@ -20,13 +20,9 @@ This method gets all the operations that are exposed for customer. .Description This method gets all the operations that are exposed for customer. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperation @@ -42,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -92,6 +89,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.EdgeOrder.private\Get-AzEdgeOrderOperation_List'; } @@ -101,6 +99,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -109,15 +108,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/internal/ProxyCmdletDefinitions.ps1 index 539f6182f819..c5466d1cebc9 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -20,13 +20,9 @@ This method gets all the operations that are exposed for customer. .Description This method gets all the operations that are exposed for customer. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.IOperation @@ -42,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -92,6 +89,7 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.EdgeOrder.private\Get-AzEdgeOrderOperation_List'; } @@ -101,6 +99,7 @@ begin { $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -109,15 +108,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/EdgeOrder/EdgeOrder.Autorest/internal/README.md b/src/EdgeOrder/EdgeOrder.Autorest/internal/README.md index bd9d6c61d9bc..57d52c44526a 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/internal/README.md +++ b/src/EdgeOrder/EdgeOrder.Autorest/internal/README.md @@ -1,5 +1,5 @@ # Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no @@ -11,4 +11,4 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that The `Az.EdgeOrder.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.EdgeOrder`. Instead, this sub-module is imported by the `..\custom\Az.EdgeOrder.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.EdgeOrder.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose -This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.EdgeOrder`. \ No newline at end of file +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.EdgeOrder`. diff --git a/src/EdgeOrder/EdgeOrder.Autorest/test-module.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/test-module.ps1 index c66ac0d33f20..6307f2d271a8 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/test-module.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/test-module.ps1 @@ -74,13 +74,14 @@ try if ($TestMode -ne 'playback') { setupEnv + } else { + $env:AzPSAutorestTestPlaybackMode = $true } $testFolder = Join-Path $PSScriptRoot 'test' if ($null -ne $TestName) { Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } else - { + } else { Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } } Finally @@ -89,6 +90,9 @@ try { cleanupEnv } + else { + $env:AzPSAutorestTestPlaybackMode = '' + } } Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/test/loadEnv.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/EdgeOrder/EdgeOrder.Autorest/test/loadEnv.ps1 +++ b/src/EdgeOrder/EdgeOrder.Autorest/test/loadEnv.ps1 @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { $env = @{} if (Test-Path -Path $envFilePath) { $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json - $PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant} + $PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant} } \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/EdgeOrder/EdgeOrder.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/EdgeOrder/EdgeOrder.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/EdgeOrder/EdgeOrder/Az.EdgeOrder.psd1 b/src/EdgeOrder/EdgeOrder/Az.EdgeOrder.psd1 index 14f7a1a6bad7..1bdcf3151c5b 100644 --- a/src/EdgeOrder/EdgeOrder/Az.EdgeOrder.psd1 +++ b/src/EdgeOrder/EdgeOrder/Az.EdgeOrder.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 12/5/2023 +# Generated on: 4/22/2024 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.7.4'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.17.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'EdgeOrder.Autorest/bin/Az.EdgeOrder.private.dll' @@ -63,7 +63,7 @@ ScriptsToProcess = @() TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'EdgeOrder.Autorest/Az.EdgeOrder.format.ps1xml' +FormatsToProcess = 'EdgeOrder.Autorest\Az.EdgeOrder.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('EdgeOrder.Autorest/Az.EdgeOrder.psm1') diff --git a/src/EdgeOrder/EdgeOrder/ChangeLog.md b/src/EdgeOrder/EdgeOrder/ChangeLog.md index 163701136b63..b2f302d6de55 100644 --- a/src/EdgeOrder/EdgeOrder/ChangeLog.md +++ b/src/EdgeOrder/EdgeOrder/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 0.1.0 * First preview release for module Az.EdgeOrder diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrder.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrder.md index b2f1f9f337e9..dfd63b926589 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrder.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrder.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorder schema: 2.0.0 @@ -14,19 +14,20 @@ Gets an order. ### List (Default) ``` -Get-AzEdgeOrder [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzEdgeOrder [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzEdgeOrder -Location -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzEdgeOrder -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -58,7 +59,8 @@ Get order details ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -102,6 +104,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -144,7 +161,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderAddress.md index 0554cd928874..f1357c48adf9 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderAddress.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderaddress schema: 2.0.0 @@ -15,19 +15,19 @@ Gets information about the specified address. ### List (Default) ``` Get-AzEdgeOrderAddress [-SubscriptionId ] [-Filter ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzEdgeOrderAddress -ResourceGroupName [-SubscriptionId ] [-Filter ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -78,7 +78,8 @@ Get address details ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -124,6 +125,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -166,7 +182,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderConfiguration.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderConfiguration.md index 241b1ade3ca8..75c7ca3777de 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderConfiguration.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderConfiguration.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderconfiguration schema: 2.0.0 @@ -13,8 +13,8 @@ This method provides the list of configurations for the given product family, pr ## SYNTAX ``` -Get-AzEdgeOrderConfiguration -ConfigurationFilter [-SubscriptionId ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Get-AzEdgeOrderConfiguration [-SubscriptionId ] -ConfigurationFilter + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -79,7 +79,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -93,6 +94,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -150,29 +166,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -CONFIGURATIONFILTER : Holds details about product hierarchy information and filterable property. - - `HierarchyInformation `: Product hierarchy information - - `[ConfigurationName ]`: Represents configuration name that uniquely identifies configuration - - `[ProductFamilyName ]`: Represents product family name that uniquely identifies product family - - `[ProductLineName ]`: Represents product line name that uniquely identifies product line - - `[ProductName ]`: Represents product name that uniquely identifies product - - `[FilterableProperty ]`: Filters specific to product - - `SupportedValue `: Values to be filtered. - - `Type `: Type of product filter. - -CUSTOMERSUBSCRIPTIONDETAIL ``: Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details - - `QuotaId `: Quota ID of a subscription - - `[LocationPlacementId ]`: Location placement Id of a subscription - - `[RegisteredFeature ]`: List of registered feature flags for subscription - - `[Name ]`: Name of subscription registered feature - - `[State ]`: State of subscription registered feature - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderItem.md index d6343398d63e..3a50caf3592a 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderItem.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderitem schema: 2.0.0 @@ -15,19 +15,19 @@ Gets an order item. ### List (Default) ``` Get-AzEdgeOrderItem [-SubscriptionId ] [-Expand ] [-Filter ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] [-Expand ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzEdgeOrderItem -ResourceGroupName [-SubscriptionId ] [-Expand ] - [-Filter ] [-DefaultProfile ] [] + [-Filter ] [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -64,7 +64,8 @@ Get orderItem details ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -126,6 +127,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -168,7 +184,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamily.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamily.md index 11ecef037338..0567726369a9 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamily.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamily.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderproductfamily schema: 2.0.0 @@ -13,8 +13,8 @@ This method provides the list of product families for the given subscription. ## SYNTAX ``` -Get-AzEdgeOrderProductFamily -FilterableProperty [-SubscriptionId ] [-Expand ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] +Get-AzEdgeOrderProductFamily [-SubscriptionId ] [-Expand ] -FilterableProperty + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -43,7 +43,8 @@ You can run Get-AzEdgeOrderConfiguration to get details of each configuration ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -87,6 +88,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -144,19 +160,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -CUSTOMERSUBSCRIPTIONDETAIL ``: Customer subscription properties. Clients can display available products to unregistered customers by explicitly passing subscription details - - `QuotaId `: Quota ID of a subscription - - `[LocationPlacementId ]`: Location placement Id of a subscription - - `[RegisteredFeature ]`: List of registered feature flags for subscription - - `[Name ]`: Name of subscription registered feature - - `[State ]`: State of subscription registered feature - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamilyMetadata.md b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamilyMetadata.md index 1a5c7cb2fd6f..4b8a72643124 100644 --- a/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamilyMetadata.md +++ b/src/EdgeOrder/EdgeOrder/help/Get-AzEdgeOrderProductFamilyMetadata.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/get-azedgeorderproductfamilymetadata schema: 2.0.0 @@ -13,8 +13,8 @@ This method provides the list of product families metadata for the given subscri ## SYNTAX ``` -Get-AzEdgeOrderProductFamilyMetadata [-SubscriptionId ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] +Get-AzEdgeOrderProductFamilyMetadata [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -44,7 +44,8 @@ To get details of any family use Get-AzEdgeOrderProductFamily command ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -58,6 +59,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -115,7 +131,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderItemCancellation.md b/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderItemCancellation.md index 8852126c63c7..f819a991f979 100644 --- a/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderItemCancellation.md +++ b/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderItemCancellation.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/invoke-azedgeorderitemcancellation schema: 2.0.0 @@ -14,14 +14,16 @@ Cancel order item. ### CancelExpanded (Default) ``` -Invoke-AzEdgeOrderItemCancellation -Name -ResourceGroupName -Reason - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] +Invoke-AzEdgeOrderItemCancellation -Name -ResourceGroupName [-SubscriptionId ] + -Reason [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### CancelViaIdentityExpanded ``` Invoke-AzEdgeOrderItemCancellation -InputObject -Reason - [-DefaultProfile ] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -39,7 +41,8 @@ Invoke orderItem cancellation ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -99,6 +102,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Reason Reason for cancellation. @@ -189,21 +207,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderReturnOrderItem.md b/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderReturnOrderItem.md index 1b99c5fe7295..355c187f33a0 100644 --- a/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderReturnOrderItem.md +++ b/src/EdgeOrder/EdgeOrder/help/Invoke-AzEdgeOrderReturnOrderItem.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/invoke-azedgeorderreturnorderitem schema: 2.0.0 @@ -14,10 +14,11 @@ Return order item. ### ReturnExpanded (Default) ``` -Invoke-AzEdgeOrderReturnOrderItem -OrderItemName -ResourceGroupName -ReturnReason - [-SubscriptionId ] [-ReturnAddressContactDetail ] +Invoke-AzEdgeOrderReturnOrderItem -OrderItemName -ResourceGroupName + [-SubscriptionId ] -ReturnReason [-ReturnAddressContactDetail ] [-ReturnAddressShippingAddress ] [-ServiceTag ] [-ShippingBoxRequired] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### ReturnViaIdentityExpanded @@ -25,7 +26,7 @@ Invoke-AzEdgeOrderReturnOrderItem -OrderItemName -ResourceGroupName -ReturnReason [-ReturnAddressContactDetail ] [-ReturnAddressShippingAddress ] [-ServiceTag ] [-ShippingBoxRequired] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-Confirm] [-WhatIf] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -58,7 +59,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -133,6 +135,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -285,40 +302,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - -RETURNADDRESSCONTACTDETAIL ``: Contact details for the address - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -RETURNADDRESSSHIPPINGADDRESS ``: Shipping details for the address - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderAddress.md index 709f7ad7ea4a..168336b0737b 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderAddress.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/new-azedgeorderaddress schema: 2.0.0 @@ -14,9 +14,10 @@ Existing address can be updated with this API ## SYNTAX ``` -New-AzEdgeOrderAddress -Name -ResourceGroupName -ContactDetail - -Location [-SubscriptionId ] [-ShippingAddress ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] + -ContactDetail -Location [-ShippingAddress ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -93,7 +94,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -153,6 +155,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -257,31 +274,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -CONTACTDETAIL ``: Contact details for the address - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -SHIPPINGADDRESS ``: Shipping details for the address - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderContactDetailsObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderContactDetailsObject.md index 2127ad80bb8c..0be85cc1fab1 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderContactDetailsObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderContactDetailsObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderContactDetailsObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderContactDetailsObject schema: 2.0.0 --- @@ -14,7 +14,7 @@ Create an in-memory object for ContactDetails. ``` New-AzEdgeOrderContactDetailsObject -ContactName -EmailList -Phone - [-Mobile ] [-PhoneExtension ] [] + [-Mobile ] [-PhoneExtension ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -114,6 +114,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -125,7 +140,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderFilterablePropertyObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderFilterablePropertyObject.md index 15691a048f78..c6968ec84f27 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderFilterablePropertyObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderFilterablePropertyObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderFilterablePropertyObject schema: 2.0.0 --- @@ -14,7 +14,7 @@ Create an in-memory object for FilterableProperty. ``` New-AzEdgeOrderFilterablePropertyObject -SupportedValue -Type - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -22,7 +22,7 @@ Create an in-memory object for FilterableProperty. ## EXAMPLES -### Example 1: Filterable property object +### Example 1: Filterable property object ```powershell $filterableProperty = New-AzEdgeOrderFilterablePropertyObject -Type "ShipToCountries" -SupportedValue @("US") $filterableProperty | Format-List @@ -37,6 +37,21 @@ ShipToCountries is mandatory filterable type, SupportedValue can be list of 2 le ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SupportedValue Values to be filtered. @@ -78,7 +93,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderHierarchyInformationObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderHierarchyInformationObject.md index 05f06c17e153..48c260072a74 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderHierarchyInformationObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderHierarchyInformationObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderHierarchyInformationObject schema: 2.0.0 --- @@ -14,7 +14,7 @@ Create an in-memory object for HierarchyInformation. ``` New-AzEdgeOrderHierarchyInformationObject [-ConfigurationName ] [-ProductFamilyName ] - [-ProductLineName ] [-ProductName ] [] + [-ProductLineName ] [-ProductName ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -110,7 +125,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderItem.md index c73956965a3f..f6fb79d46128 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderItem.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/new-azedgeorderitem schema: 2.0.0 @@ -14,10 +14,11 @@ Existing order item cannot be updated with this api and should instead be update ## SYNTAX ``` -New-AzEdgeOrderItem -Name -ResourceGroupName -ForwardAddressContactDetail - -Location -OrderId -OrderItemDetail [-SubscriptionId ] - [-ForwardShippingAddress ] [-Tag ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] +New-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] + -ForwardAddressContactDetail -Location -OrderId + -OrderItemDetail [-ForwardShippingAddress ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -67,7 +68,6 @@ StartTime : 11/16/2021 10:34:51 AM SystemData : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.SystemData Tag : Microsoft.Azure.PowerShell.Cmdlets.EdgeOrder.Models.Api20.TrackedResourceTags Type : Microsoft.EdgeOrder/orderItems - ``` Creates a new orderItem. @@ -108,7 +108,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -230,6 +231,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -318,51 +334,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -FORWARDADDRESSCONTACTDETAIL ``: Contact details for the address - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -FORWARDSHIPPINGADDRESS ``: Shipping details for the address - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[ZipExtendedCode ]`: Extended Zip Code. - -ORDERITEMDETAIL ``: Represents order item details. - - `OrderItemType `: Order item type. - - `ProductDetail `: Unique identifier for configuration. - - `HierarchyInformation `: Hierarchy of the product which uniquely identifies the product - - `[ConfigurationName ]`: Represents configuration name that uniquely identifies configuration - - `[ProductFamilyName ]`: Represents product family name that uniquely identifies product family - - `[ProductLineName ]`: Represents product line name that uniquely identifies product line - - `[ProductName ]`: Represents product name that uniquely identifies product - - `[NotificationEmailList ]`: Additional notification email list - - `[Preference ]`: Customer notification Preferences - - `[EncryptionPreference ]`: Preferences related to the Encryption. - - `[DoubleEncryptionStatus ]`: Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. - - `[ManagementResourcePreference ]`: Preferences related to the Management resource. - - `[PreferredManagementResourceId ]`: Customer preferred Management resource ARM ID - - `[NotificationPreference ]`: Notification preferences. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[TransportPreference ]`: Preferences related to the shipment logistics of the order. - - `PreferredShipmentType `: Indicates Shipment Logistics type that the customer preferred. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderOrderItemDetailsObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderOrderItemDetailsObject.md index 8f2d9f92ec40..6e9185ba4701 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderOrderItemDetailsObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderOrderItemDetailsObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderOrderItemDetailsObject schema: 2.0.0 --- @@ -14,7 +14,8 @@ Create an in-memory object for OrderItemDetails. ``` New-AzEdgeOrderOrderItemDetailsObject -OrderItemType -ProductDetail - [-NotificationEmailList ] [-Preference ] [] + [-NotificationEmailList ] [-Preference ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -94,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). @@ -105,30 +121,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -PREFERENCE ``: Customer notification Preferences. - - `[EncryptionPreference ]`: Preferences related to the Encryption. - - `[DoubleEncryptionStatus ]`: Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. - - `[ManagementResourcePreference ]`: Preferences related to the Management resource. - - `[PreferredManagementResourceId ]`: Customer preferred Management resource ARM ID - - `[NotificationPreference ]`: Notification preferences. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[TransportPreference ]`: Preferences related to the shipment logistics of the order. - - `PreferredShipmentType `: Indicates Shipment Logistics type that the customer preferred. - -PRODUCTDETAIL ``: Unique identifier for configuration. - - `HierarchyInformation `: Hierarchy of the product which uniquely identifies the product - - `[ConfigurationName ]`: Represents configuration name that uniquely identifies configuration - - `[ProductFamilyName ]`: Represents product family name that uniquely identifies product family - - `[ProductLineName ]`: Represents product line name that uniquely identifies product line - - `[ProductName ]`: Represents product name that uniquely identifies product - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderPreferencesObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderPreferencesObject.md index b80a75b4dfb2..f0bc2d483b95 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderPreferencesObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderPreferencesObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderPreferencesObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderPreferencesObject schema: 2.0.0 --- @@ -16,7 +16,7 @@ Create an in-memory object for Preferences. New-AzEdgeOrderPreferencesObject [-EncryptionPreference ] [-ManagementResourcePreference ] [-NotificationPreference ] [-TransportPreference ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TransportPreference Preferences related to the shipment logistics of the order. To construct, see NOTES section for TRANSPORTPREFERENCE properties and create a hash table. @@ -108,25 +123,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -ENCRYPTIONPREFERENCE ``: Preferences related to the Encryption. - - `[DoubleEncryptionStatus ]`: Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. - -MANAGEMENTRESOURCEPREFERENCE ``: Preferences related to the Management resource. - - `[PreferredManagementResourceId ]`: Customer preferred Management resource ARM ID - -NOTIFICATIONPREFERENCE : Notification preferences. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - -TRANSPORTPREFERENCE ``: Preferences related to the shipment logistics of the order. - - `PreferredShipmentType `: Indicates Shipment Logistics type that the customer preferred. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderShippingAddressObject.md b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderShippingAddressObject.md index dcce71336480..8e74e7a39534 100644 --- a/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderShippingAddressObject.md +++ b/src/EdgeOrder/EdgeOrder/help/New-AzEdgeOrderShippingAddressObject.md @@ -1,7 +1,7 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder -online version: https://learn.microsoft.com/powershell/module/az.EdgeOrder/new-AzEdgeOrderShippingAddressObject +online version: https://learn.microsoft.com/powershell/module/Az.EdgeOrder/new-AzEdgeOrderShippingAddressObject schema: 2.0.0 --- @@ -15,7 +15,8 @@ Create an in-memory object for ShippingAddress. ``` New-AzEdgeOrderShippingAddressObject -Country -StreetAddress1 [-AddressType ] [-City ] [-CompanyName ] [-PostalCode ] [-StateOrProvince ] - [-StreetAddress2 ] [-StreetAddress3 ] [-ZipExtendedCode ] [] + [-StreetAddress2 ] [-StreetAddress3 ] [-ZipExtendedCode ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -122,6 +123,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StateOrProvince Name of the State or Province. @@ -208,7 +224,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderAddress.md index 1675960818e8..6443bf399a22 100644 --- a/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderAddress.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/remove-azedgeorderaddress schema: 2.0.0 @@ -15,13 +15,14 @@ Deletes an address. ### Delete (Default) ``` Remove-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzEdgeOrderAddress -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -54,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -130,6 +132,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -205,21 +222,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderItem.md index 7c9f63fd9876..b671d78bec97 100644 --- a/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder/help/Remove-AzEdgeOrderItem.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/remove-azedgeorderitem schema: 2.0.0 @@ -15,13 +15,14 @@ Deletes an order item. ### Delete (Default) ``` Remove-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzEdgeOrderItem -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -54,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -129,6 +131,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -204,21 +221,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderAddress.md b/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderAddress.md index 47c1929b53a7..0dd6c30d0a71 100644 --- a/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderAddress.md +++ b/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderAddress.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/update-azedgeorderaddress schema: 2.0.0 @@ -16,14 +16,15 @@ Updates the properties of an existing address. ``` Update-AzEdgeOrderAddress -Name -ResourceGroupName [-SubscriptionId ] [-ContactDetail ] [-ShippingAddress ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzEdgeOrderAddress -InputObject [-ContactDetail ] [-ShippingAddress ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -90,7 +91,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -151,6 +153,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -258,40 +275,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -CONTACTDETAIL ``: Contact details for the address - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - -SHIPPINGADDRESS ``: Shipping details for the address - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[ZipExtendedCode ]`: Extended Zip Code. - ## RELATED LINKS - diff --git a/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderItem.md b/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderItem.md index 109fee10d383..57f8f8657e7f 100644 --- a/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderItem.md +++ b/src/EdgeOrder/EdgeOrder/help/Update-AzEdgeOrderItem.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.EdgeOrder-help.xml Module Name: Az.EdgeOrder online version: https://learn.microsoft.com/powershell/module/az.edgeorder/update-azedgeorderitem schema: 2.0.0 @@ -17,15 +17,16 @@ Updates the properties of an existing order item. Update-AzEdgeOrderItem -Name -ResourceGroupName [-SubscriptionId ] [-ForwardAddressContactDetail ] [-ForwardAddressShippingAddress ] [-NotificationEmailList ] [-Preference ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzEdgeOrderItem -InputObject [-ForwardAddressContactDetail ] [-ForwardAddressShippingAddress ] [-NotificationEmailList ] - [-Preference ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] + [-Preference ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -81,7 +82,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -204,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -295,51 +312,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES -ALIASES - -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - - -FORWARDADDRESSCONTACTDETAIL ``: Contact details for the address - - `ContactName `: Contact name of the person. - - `EmailList `: List of Email-ids to be notified about job progress. - - `Phone `: Phone number of the contact person. - - `[Mobile ]`: Mobile number of the contact person. - - `[PhoneExtension ]`: Phone extension number of the contact person. - -FORWARDADDRESSSHIPPINGADDRESS ``: Shipping details for the address - - `Country `: Name of the Country. - - `StreetAddress1 `: Street Address line 1. - - `[AddressType ]`: Type of address. - - `[City ]`: Name of the City. - - `[CompanyName ]`: Name of the company. - - `[PostalCode ]`: Postal code. - - `[StateOrProvince ]`: Name of the State or Province. - - `[StreetAddress2 ]`: Street Address line 2. - - `[StreetAddress3 ]`: Street Address line 3. - - `[ZipExtendedCode ]`: Extended Zip Code. - -INPUTOBJECT ``: Identity Parameter - - `[AddressName ]`: The name of the address Resource within the specified resource group. address names must be between 3 and 24 characters in length and use any alphanumeric and underscore only - - `[Id ]`: Resource identity path - - `[Location ]`: The name of Azure region. - - `[OrderItemName ]`: The name of the order item - - `[OrderName ]`: The name of the order - - `[ResourceGroupName ]`: The name of the resource group. The name is case insensitive. - - `[SubscriptionId ]`: The ID of the target subscription. - -PREFERENCE ``: Customer preference. - - `[EncryptionPreference ]`: Preferences related to the Encryption. - - `[DoubleEncryptionStatus ]`: Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured. - - `[ManagementResourcePreference ]`: Preferences related to the Management resource. - - `[PreferredManagementResourceId ]`: Customer preferred Management resource ARM ID - - `[NotificationPreference ]`: Notification preferences. - - `SendNotification `: Notification is required or not. - - `StageName `: Name of the stage. - - `[TransportPreference ]`: Preferences related to the shipment logistics of the order. - - `PreferredShipmentType `: Indicates Shipment Logistics type that the customer preferred. - ## RELATED LINKS - diff --git a/src/KeyVault/KeyVault.Autorest/generated/api/KeyVault.cs b/src/KeyVault/KeyVault.Autorest/generated/api/KeyVault.cs index 8906556596a2..26d3ddad3f4d 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/api/KeyVault.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/api/KeyVault.cs @@ -427,7 +427,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the managed HSM pool. @@ -477,7 +477,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// /// Parameters to create or update the managed HSM Pool /// a delegate that is called when the remote service returns 200 (OK). @@ -536,7 +536,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// /// Parameters to create or update the managed HSM Pool /// an instance that will receive events. @@ -593,7 +593,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the managed HSM pool. @@ -642,7 +642,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the managed HSM pool. @@ -689,7 +689,7 @@ public partial class KeyVault } } - /// Create a managed HSM Pool in the specified subscription. + /// Update a managed HSM Pool in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the managed HSM pool. @@ -5062,7 +5062,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. @@ -5117,7 +5117,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// /// The intended state of private endpoint connection. @@ -5181,7 +5181,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// /// The intended state of private endpoint connection. @@ -5243,7 +5243,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. @@ -5297,7 +5297,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. @@ -5349,7 +5349,7 @@ public partial class KeyVault } /// - /// Updates the specified private endpoint connection associated with the managed hsm pool. + /// Put the specified private endpoint connection associated with the managed hsm pool. /// /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. @@ -7443,9 +7443,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the key vault. @@ -7498,9 +7496,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// /// The intended state of private endpoint connection. /// a delegate that is called when the remote service returns 200 (OK). @@ -7562,9 +7558,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// /// The intended state of private endpoint connection. /// an instance that will receive events. @@ -7624,9 +7618,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the key vault. @@ -7678,9 +7670,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the key vault. @@ -7730,9 +7720,7 @@ public partial class KeyVault } } - /// - /// Updates the specified private endpoint connection associated with the key vault. - /// + /// Put the specified private endpoint connection associated with the key vault. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// Name of the resource group that contains the key vault. @@ -8665,7 +8653,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// The name of the Resource Group to which the server belongs. @@ -8715,7 +8703,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// /// Parameters to create or update the vault /// a delegate that is called when the remote service returns 200 (OK). @@ -8774,7 +8762,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// /// Parameters to create or update the vault /// an instance that will receive events. @@ -8831,7 +8819,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// The name of the Resource Group to which the server belongs. @@ -8880,7 +8868,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// The name of the Resource Group to which the server belongs. @@ -8927,7 +8915,7 @@ public partial class KeyVault } } - /// Create a key vault in the specified subscription. + /// Update a key vault in the specified subscription. /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription /// ID forms part of the URI for every service call. /// The name of the Resource Group to which the server belongs. diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsmRegion_List.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsmRegion_List.cs index 083e7880e4d4..284322671435 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsmRegion_List.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsmRegion_List.cs @@ -228,11 +228,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_Get.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_Get.cs index a93489e9f941..fdfd3fc322ff 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_Get.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_Get.cs @@ -238,11 +238,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_GetViaIdentity.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_GetViaIdentity.cs index cb2b55eb44d1..990cd8a39200 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_GetViaIdentity.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_GetViaIdentity.cs @@ -196,11 +196,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List.cs index 30d794b95ce1..96db94fd06ca 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List.cs @@ -230,11 +230,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List1.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List1.cs index 3686c9ceff83..8528be7ad340 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List1.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/GetAzKeyVaultManagedHsm_List1.cs @@ -215,11 +215,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckExpanded.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckExpanded.cs index 2a5816f4def2..c606d4f1c27c 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckExpanded.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckExpanded.cs @@ -206,11 +206,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonFilePath.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonFilePath.cs index 32d13d9891ff..1f1bed67f51f 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonFilePath.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonFilePath.cs @@ -208,11 +208,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonString.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonString.cs index 46158c72feb2..e05066f33c36 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonString.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultManagedHsmNameAvailability_CheckViaJsonString.cs @@ -206,11 +206,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckExpanded.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckExpanded.cs index 60603b7a21db..879a36fef77c 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckExpanded.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckExpanded.cs @@ -206,11 +206,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonFilePath.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonFilePath.cs index d92ddf528a1c..a88754280887 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonFilePath.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonFilePath.cs @@ -208,11 +208,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonString.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonString.cs index 94e3a8529b09..a91eab15499e 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonString.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/TestAzKeyVaultNameAvailability_CheckViaJsonString.cs @@ -206,11 +206,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_Update.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_Update.cs index e18c538ce889..f4ad2697e5fa 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_Update.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_Update.cs @@ -272,11 +272,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateExpanded.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateExpanded.cs index 041cf58cf7ef..1d404198b184 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateExpanded.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateExpanded.cs @@ -444,11 +444,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentity.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentity.cs index fd6af4dbc817..0bc8aced05f0 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentity.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentityExpanded.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentityExpanded.cs index 76ce26216076..b1e5cf877c4f 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentityExpanded.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaIdentityExpanded.cs @@ -399,11 +399,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonFilePath.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonFilePath.cs index 1a0466677f39..009b79a13bbd 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonFilePath.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonFilePath.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonString.cs b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonString.cs index 27d8983a240a..f78728b30d50 100644 --- a/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonString.cs +++ b/src/KeyVault/KeyVault.Autorest/generated/cmdlets/UpdateAzKeyVaultManagedHsm_UpdateViaJsonString.cs @@ -272,11 +272,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.KeyVault.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/KeyVault/KeyVault/Az.KeyVault.psd1 b/src/KeyVault/KeyVault/Az.KeyVault.psd1 index 38a9d2ad70db..e652dadabbcc 100644 --- a/src/KeyVault/KeyVault/Az.KeyVault.psd1 +++ b/src/KeyVault/KeyVault/Az.KeyVault.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 03/27/2024 +# Generated on: 4/22/2024 # @{ @@ -65,13 +65,13 @@ RequiredAssemblies = 'Azure.Security.KeyVault.Administration.dll', 'Microsoft.Azure.PowerShell.KeyVault.Management.Sdk.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'KeyVault.Autorest/Az.KeyVault.format.ps1xml', +FormatsToProcess = 'KeyVault.Autorest\Az.KeyVault.format.ps1xml', 'KeyVault.format.ps1xml', 'keyvault.generated.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess @@ -162,7 +162,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','KeyVault','SecretManagement' + Tags = 'Azure', 'ResourceManager', 'ARM', 'KeyVault', 'SecretManagement' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -193,7 +193,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/KeyVault/KeyVault/ChangeLog.md b/src/KeyVault/KeyVault/ChangeLog.md index 38be67ece83e..ac237c2d93c9 100644 --- a/src/KeyVault/KeyVault/ChangeLog.md +++ b/src/KeyVault/KeyVault/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. * [Upcoming Breaking Change] Added breaking change warning message for parameter `UseDefaultCVMPolicy` of `Add-AzKeyVaultKey`. - The offline fallback policy will be removed. Key creation will fail if unable to get regional default CVM SKR policy from MAA Service Discovery API. * Added parameter `PolicyPath` in `Add-AzKeyVaultCertificate` to support custom policy in the process of certificate enrollment. diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificate.md index 931f6fe1d28a..b946ac08ec8d 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificate.md @@ -13,17 +13,19 @@ Adds a certificate to a key vault. ## SYNTAX -### EnrollCertWithPolicyObject +### EnrollCertWithPolicyPath (Default) ``` -Add-AzKeyVaultCertificate [-VaultName] [-Name] - [-CertificatePolicy] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Add-AzKeyVaultCertificate [-VaultName] [-Name] [-PolicyPath] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` -### EnrollCertWithPolicyPath +### EnrollCertWithPolicyObject ``` -Add-AzKeyVaultCertificate [-VaultName] [-Name] [-PolicyPath] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] +Add-AzKeyVaultCertificate [-VaultName] [-Name] + [-CertificatePolicy] [-Tag ] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -157,6 +159,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificateContact.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificateContact.md index 1c7f6672164f..315d717a13c9 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificateContact.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultCertificateContact.md @@ -16,21 +16,21 @@ Adds a contact for certificate notifications. ### Interactive (Default) ``` Add-AzKeyVaultCertificateContact [-VaultName] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByObject ``` Add-AzKeyVaultCertificateContact [-InputObject] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Add-AzKeyVaultCertificateContact [-ResourceId] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -117,6 +117,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultKey.md index 8c5bad8899af..e85b079f5700 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultKey.md @@ -18,7 +18,7 @@ Creates a key in a key vault or imports a key into a key vault. Add-AzKeyVaultKey [-VaultName] [-Name] -Destination [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] [-KeyType ] [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] [-UseDefaultCVMPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -27,7 +27,7 @@ Add-AzKeyVaultKey [-VaultName] [-Name] -Destination [ Add-AzKeyVaultKey [-VaultName] [-Name] -KeyFilePath [-KeyFilePassword ] [-Destination ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-KeyType ] [-CurveName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -36,7 +36,7 @@ Add-AzKeyVaultKey [-VaultName] [-Name] -KeyFilePath Add-AzKeyVaultKey -HsmName [-Name] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] -KeyType [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] [-UseDefaultCVMPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -44,7 +44,7 @@ Add-AzKeyVaultKey -HsmName [-Name] [-Disable] [-KeyOps [-Name] -KeyFilePath [-KeyFilePassword ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -53,7 +53,7 @@ Add-AzKeyVaultKey -HsmName [-Name] -KeyFilePath [-Key Add-AzKeyVaultKey [-InputObject] [-Name] -Destination [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] [-KeyType ] [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] - [-UseDefaultCVMPolicy] [-DefaultProfile ] + [-UseDefaultCVMPolicy] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -62,7 +62,7 @@ Add-AzKeyVaultKey [-InputObject] [-Name] -Destination [-Name] -KeyFilePath [-KeyFilePassword ] [-Destination ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-KeyType ] [-CurveName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -71,7 +71,7 @@ Add-AzKeyVaultKey [-InputObject] [-Name] -KeyFilePath [-Name] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] -KeyType [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] [-UseDefaultCVMPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -80,7 +80,7 @@ Add-AzKeyVaultKey [-HsmObject] [-Name] [-Disable] [-KeyO Add-AzKeyVaultKey [-HsmObject] [-Name] -KeyFilePath [-KeyFilePassword ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceIdCreate @@ -88,7 +88,7 @@ Add-AzKeyVaultKey [-HsmObject] [-Name] -KeyFilePath [-Name] -Destination [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] [-KeyType ] [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] [-UseDefaultCVMPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -97,7 +97,7 @@ Add-AzKeyVaultKey [-ResourceId] [-Name] -Destination Add-AzKeyVaultKey [-ResourceId] [-Name] -KeyFilePath [-KeyFilePassword ] [-Destination ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-KeyType ] [-CurveName ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -106,7 +106,7 @@ Add-AzKeyVaultKey [-ResourceId] [-Name] -KeyFilePath Add-AzKeyVaultKey -HsmResourceId [-Name] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-Size ] -KeyType [-CurveName ] [-Exportable] [-Immutable] [-ReleasePolicyPath ] [-UseDefaultCVMPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -115,7 +115,7 @@ Add-AzKeyVaultKey -HsmResourceId [-Name] [-Disable] [-KeyOps < Add-AzKeyVaultKey -HsmResourceId [-Name] -KeyFilePath [-KeyFilePassword ] [-Disable] [-KeyOps ] [-Expires ] [-NotBefore ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -742,6 +742,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReleasePolicyPath A path to a file containing JSON policy definition. The policy rules under which a key can be exported. diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedHsmRegion.md index 07816cca0ee0..f90fc6e2f956 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedHsmRegion.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedHsmRegion.md @@ -14,7 +14,7 @@ The List operation gets information about the regions associated with the manage ``` Add-AzKeyVaultManagedHsmRegion -HsmName -ResourceGroupName [-SubscriptionId ] - -Region [-DefaultProfile ] [-AsJob] [-WhatIf] + -Region [-DefaultProfile ] [-AsJob] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -85,6 +85,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Region List of regions to be added associated with the managed hsm pool. To construct, see NOTES section for REGION properties and create a hash table. diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedStorageAccount.md index b930e47f9884..950b5783206c 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultManagedStorageAccount.md @@ -15,7 +15,7 @@ Adds an existing Azure Storage Account to the specified key vault for its keys t ``` Add-AzKeyVaultManagedStorageAccount [-VaultName] [-AccountName] [-AccountResourceId] [-ActiveKeyName] [-DisableAutoRegenerateKey] [-RegenerationPeriod ] [-Disable] - [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -179,6 +179,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RegenerationPeriod Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the new active key. diff --git a/src/KeyVault/KeyVault/help/Add-AzKeyVaultNetworkRule.md b/src/KeyVault/KeyVault/help/Add-AzKeyVaultNetworkRule.md index a16d9bb9ab27..2d4862cea182 100644 --- a/src/KeyVault/KeyVault/help/Add-AzKeyVaultNetworkRule.md +++ b/src/KeyVault/KeyVault/help/Add-AzKeyVaultNetworkRule.md @@ -16,21 +16,21 @@ Adds a rule meant to restrict access to a key vault based on the client's intern ``` Add-AzKeyVaultNetworkRule [-VaultName] [[-ResourceGroupName] ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByInputObject ``` Add-AzKeyVaultNetworkRule [-InputObject] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByResourceId ``` Add-AzKeyVaultNetworkRule [-ResourceId] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -153,6 +153,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the key vault whose network rule is being modified. diff --git a/src/KeyVault/KeyVault/help/Backup-AzKeyVault.md b/src/KeyVault/KeyVault/help/Backup-AzKeyVault.md index 73a64c514a80..f69866bfa048 100644 --- a/src/KeyVault/KeyVault/help/Backup-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/Backup-AzKeyVault.md @@ -16,20 +16,20 @@ Fully backup a managed HSM. ``` Backup-AzKeyVault [-HsmName] -StorageAccountName -StorageContainerName [-SasToken ] [-UseUserManagedIdentity] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InteractiveStorageUri ``` Backup-AzKeyVault [-HsmName] -StorageContainerUri [-SasToken ] - [-UseUserManagedIdentity] [-DefaultProfile ] + [-UseUserManagedIdentity] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObjectStorageUri ``` Backup-AzKeyVault -StorageContainerUri [-SasToken ] [-UseUserManagedIdentity] - -HsmObject [-DefaultProfile ] + -HsmObject [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -37,7 +37,7 @@ Backup-AzKeyVault -StorageContainerUri [-SasToken ] [-UseUse ``` Backup-AzKeyVault -StorageAccountName -StorageContainerName [-SasToken ] [-UseUserManagedIdentity] -HsmObject [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -130,6 +130,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SasToken The shared access signature (SAS) token to authenticate the storage account. diff --git a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultCertificate.md index 6a6bda070767..9df11a07b47b 100644 --- a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultCertificate.md @@ -15,14 +15,14 @@ Backs up a certificate in a key vault. ### ByCertificateName (Default) ``` Backup-AzKeyVaultCertificate [-VaultName] [-Name] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByCertificate ``` Backup-AzKeyVaultCertificate [-InputObject] [[-OutputFile] ] - [-Force] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-Force] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -154,6 +154,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultKey.md index 9540a4915069..889cda4787fa 100644 --- a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultKey.md @@ -16,21 +16,21 @@ Backs up a key in a key vault. ### ByKeyName (Default) ``` Backup-AzKeyVaultKey [-VaultName] [-Name] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmByKeyName ``` Backup-AzKeyVaultKey -HsmName [-Name] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByKey ``` Backup-AzKeyVaultKey [-InputObject] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -175,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault that contains the key to back up. diff --git a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultManagedStorageAccount.md index b8556f39fd29..b3207b2bf371 100644 --- a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultManagedStorageAccount.md @@ -15,7 +15,7 @@ Backs up a KeyVault-managed storage account. ### ByStorageAccountName (Default) ``` Backup-AzKeyVaultManagedStorageAccount [-VaultName] [-Name] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,7 +23,7 @@ Backup-AzKeyVaultManagedStorageAccount [-VaultName] [-Name] [[ ``` Backup-AzKeyVaultManagedStorageAccount [-InputObject] [[-OutputFile] ] [-Force] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -153,6 +153,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultSecret.md index 1bd3e9341580..0179dcd50b43 100644 --- a/src/KeyVault/KeyVault/help/Backup-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Backup-AzKeyVaultSecret.md @@ -16,14 +16,14 @@ Backs up a secret in a key vault. ### BySecretName (Default) ``` Backup-AzKeyVaultSecret [-VaultName] [-Name] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BySecret ``` Backup-AzKeyVaultSecret [-InputObject] [[-OutputFile] ] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -151,6 +151,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault that contains the secret to back up. diff --git a/src/KeyVault/KeyVault/help/Export-AzKeyVaultSecurityDomain.md b/src/KeyVault/KeyVault/help/Export-AzKeyVaultSecurityDomain.md index 0a24fbbb7fb6..84833a43e693 100644 --- a/src/KeyVault/KeyVault/help/Export-AzKeyVaultSecurityDomain.md +++ b/src/KeyVault/KeyVault/help/Export-AzKeyVaultSecurityDomain.md @@ -15,7 +15,7 @@ Exports the security domain data of a managed HSM. ### ByName (Default) ``` Export-AzKeyVaultSecurityDomain -Name -Certificates -OutputPath [-Force] - [-PassThru] -Quorum [-DefaultProfile ] + [-PassThru] -Quorum [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -23,7 +23,7 @@ Export-AzKeyVaultSecurityDomain -Name -Certificates -OutputP ``` Export-AzKeyVaultSecurityDomain -InputObject -Certificates -OutputPath [-Force] [-PassThru] -Quorum [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -145,6 +145,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Quorum The minimum number of shares required to decrypt the security domain for recovery. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVault.md b/src/KeyVault/KeyVault/help/Get-AzKeyVault.md index 50fb9749629d..e194a785eecd 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVault.md @@ -16,21 +16,21 @@ Gets key vaults. ### GetVaultByName (Default) ``` Get-AzKeyVault [[-VaultName] ] [[-ResourceGroupName] ] [-Tag ] - [-DefaultProfile ] [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [-SubscriptionId ] [] ``` ### ByDeletedVault ``` Get-AzKeyVault [-VaultName] [-Location] [-InRemovedState] - [-DefaultProfile ] [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [-SubscriptionId ] [] ``` ### ListAllDeletedVaultsInSubscription ``` Get-AzKeyVault [-InRemovedState] [-DefaultProfile ] - [-SubscriptionId ] [] + [-ProgressAction ] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -250,6 +250,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the key vault or key vaults being queried. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md index a5b00e3e5ac7..fa1e832f4bd4 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md @@ -16,55 +16,55 @@ Gets a certificate from a key vault. ### ByName (Default) ``` Get-AzKeyVaultCertificate [-VaultName] [[-Name] ] [-InRemovedState] [-IncludePending] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateNameAndVersion ``` Get-AzKeyVaultCertificate [-VaultName] [-Name] [-Version] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateAllVersions ``` Get-AzKeyVaultCertificate [-VaultName] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByNameInputObject ``` Get-AzKeyVaultCertificate [-InputObject] [[-Name] ] [-InRemovedState] [-IncludePending] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateNameAndVersionInputObject ``` Get-AzKeyVaultCertificate [-InputObject] [-Name] [-Version] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateAllVersionsInputObject ``` Get-AzKeyVaultCertificate [-InputObject] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByNameResourceId ``` Get-AzKeyVaultCertificate [-ResourceId] [[-Name] ] [-InRemovedState] [-IncludePending] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateNameAndVersionResourceId ``` Get-AzKeyVaultCertificate [-ResourceId] [-Name] [-Version] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByCertificateAllVersionsResourceId ``` Get-AzKeyVaultCertificate [-ResourceId] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -331,6 +331,21 @@ Accept pipeline input: False Accept wildcard characters: True ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateContact.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateContact.md index 01493deb04db..fdde9ab14005 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateContact.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateContact.md @@ -16,19 +16,19 @@ Gets contacts that are registered for certificate notifications for a key vault. ### VaultName (Default) ``` Get-AzKeyVaultCertificateContact [-VaultName] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ByInputObject ``` Get-AzKeyVaultCertificateContact [-InputObject] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ByResourceId ``` Get-AzKeyVaultCertificateContact [-ResourceId] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -82,6 +82,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateIssuer.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateIssuer.md index aba725fdc820..83e0c200c443 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateIssuer.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateIssuer.md @@ -16,19 +16,19 @@ Gets a certificate issuer for a key vault. ### ByName (Default) ``` Get-AzKeyVaultCertificateIssuer [-VaultName] [[-Name] ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObject ``` Get-AzKeyVaultCertificateIssuer [-InputObject] [[-Name] ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceId ``` Get-AzKeyVaultCertificateIssuer [-ResourceId] [[-Name] ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -122,6 +122,21 @@ Accept pipeline input: False Accept wildcard characters: True ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateOperation.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateOperation.md index 4b626028f039..5956d6a6ee46 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateOperation.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificateOperation.md @@ -16,13 +16,13 @@ Gets the status of a certificate operation. ### ByName (Default) ``` Get-AzKeyVaultCertificateOperation [-VaultName] [-Name] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObject ``` Get-AzKeyVaultCertificateOperation [-InputObject] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of a key vault. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificatePolicy.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificatePolicy.md index ffe3ddf1a3d4..12411501a7af 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificatePolicy.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificatePolicy.md @@ -16,13 +16,13 @@ Gets the policy for a certificate in a key vault. ### VaultAndCertName (Default) ``` Get-AzKeyVaultCertificatePolicy [-VaultName] [-Name] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### InputObject ``` Get-AzKeyVaultCertificatePolicy [-InputObject] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of a key vault. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultKey.md index 1ffa6c17822a..1ef2e2e0f76b 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultKey.md @@ -16,109 +16,109 @@ Gets Key Vault keys. Please notes that detailed information about a key, like ke ### ByVaultName (Default) ``` Get-AzKeyVaultKey [-VaultName] [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByKeyName ``` Get-AzKeyVaultKey [-VaultName] [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByKeyVersions ``` Get-AzKeyVaultKey [-VaultName] [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByKeyName ``` Get-AzKeyVaultKey -HsmName [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByVaultName ``` Get-AzKeyVaultKey -HsmName [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByKeyVersions ``` Get-AzKeyVaultKey -HsmName [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVaultName ``` Get-AzKeyVaultKey [-InputObject] [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectKeyName ``` Get-AzKeyVaultKey [-InputObject] [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectKeyVersions ``` Get-AzKeyVaultKey [-InputObject] [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByInputObjectVaultName ``` Get-AzKeyVaultKey [-HsmObject] [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByInputObjectKeyName ``` Get-AzKeyVaultKey [-HsmObject] [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByInputObjectKeyVersions ``` Get-AzKeyVaultKey [-HsmObject] [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdVaultName ``` Get-AzKeyVaultKey -ResourceId [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdKeyName ``` Get-AzKeyVaultKey -ResourceId [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdKeyVersions ``` Get-AzKeyVaultKey -ResourceId [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByResourceIdVaultName ``` Get-AzKeyVaultKey -HsmResourceId [[-Name] ] [-InRemovedState] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByResourceIdKeyName ``` Get-AzKeyVaultKey -HsmResourceId [-Name] [-Version] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### HsmByResourceIdKeyVersions ``` Get-AzKeyVaultKey -HsmResourceId [-Name] [-IncludeVersions] [-OutFile ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -480,6 +480,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultKeyRotationPolicy.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultKeyRotationPolicy.md index 82622a58383b..78e218e46b3d 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultKeyRotationPolicy.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultKeyRotationPolicy.md @@ -15,13 +15,13 @@ Gets the key rotation policy for the specified key in Key Vault. ### ByVaultName (Default) ``` Get-AzKeyVaultKeyRotationPolicy [-VaultName] [-Name] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByKeyInputObject ``` Get-AzKeyVaultKeyRotationPolicy [-InputObject] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -93,6 +93,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsm.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsm.md index 61b7f320d292..5317da6000bd 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsm.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsm.md @@ -15,21 +15,21 @@ Get managed HSMs. ### GetManagedHsm (Default) ``` Get-AzKeyVaultManagedHsm [[-Name] ] [[-ResourceGroupName] ] [-Tag ] - [-DefaultProfile ] [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [-SubscriptionId ] [] ``` ### GetDeletedManagedHsm ``` Get-AzKeyVaultManagedHsm [-Name] [-Location] [-InRemovedState] [-Tag ] - [-DefaultProfile ] [-SubscriptionId ] + [-DefaultProfile ] [-ProgressAction ] [-SubscriptionId ] [] ``` ### ListDeletedManagedHsms ``` Get-AzKeyVaultManagedHsm [-InRemovedState] [-Tag ] [-DefaultProfile ] - [-SubscriptionId ] [] + [-ProgressAction ] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -183,6 +183,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: True ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the managed HSM being queried. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsmRegion.md index 7cd53d58d6e7..21b8cbc7da40 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsmRegion.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedHsmRegion.md @@ -14,7 +14,7 @@ The List operation gets information about the regions associated with the manage ``` Get-AzKeyVaultManagedHsmRegion -HsmName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Name of the resource group that contains the managed HSM pool. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageAccount.md index 7da17fc8c637..16d6013a5cf0 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageAccount.md @@ -15,19 +15,19 @@ Gets Key Vault managed Azure Storage Accounts. ### ByAccountName (Default) ``` Get-AzKeyVaultManagedStorageAccount [-VaultName] [[-AccountName] ] [-InRemovedState] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObject ``` Get-AzKeyVaultManagedStorageAccount [-InputObject] [-InRemovedState] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceId ``` Get-AzKeyVaultManagedStorageAccount [-ResourceId] [-InRemovedState] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -167,6 +167,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Vault resource id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageSasDefinition.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageSasDefinition.md index 86a9bada5be5..bb58b50e8be3 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageSasDefinition.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultManagedStorageSasDefinition.md @@ -15,7 +15,7 @@ Gets Key Vault managed Storage SAS Definitions. ### ByDefinitionName (Default) ``` Get-AzKeyVaultManagedStorageSasDefinition [-VaultName] [-AccountName] [[-Name] ] - [-InRemovedState] [-DefaultProfile ] + [-InRemovedState] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,7 +23,7 @@ Get-AzKeyVaultManagedStorageSasDefinition [-VaultName] [-AccountName] < ``` Get-AzKeyVaultManagedStorageSasDefinition [-InputObject] [[-Name] ] [-InRemovedState] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -175,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRandomNumber.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRandomNumber.md index 934cd75ca02b..72853d26497f 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRandomNumber.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRandomNumber.md @@ -15,19 +15,19 @@ Get the requested number of bytes containing random values from a managed HSM. ### GetByHsmName (Default) ``` Get-AzKeyVaultRandomNumber [-DefaultProfile ] [-HsmName] -Count - [-AsBase64String] [] + [-AsBase64String] [-ProgressAction ] [] ``` ### GetByHsmResourceId ``` Get-AzKeyVaultRandomNumber [-ResourceId] [-DefaultProfile ] -Count - [-AsBase64String] [] + [-AsBase64String] [-ProgressAction ] [] ``` ### GetByHsmInputObject ``` Get-AzKeyVaultRandomNumber [-DefaultProfile ] [-InputObject] - -Count [-AsBase64String] [] + -Count [-AsBase64String] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -164,6 +164,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId HSM resource id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleAssignment.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleAssignment.md index b76e0e502418..baa6acd510f4 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleAssignment.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleAssignment.md @@ -16,13 +16,13 @@ Get or list role assignments of a managed HSM. Use respective parameters to list ``` Get-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] [-RoleDefinitionName ] [-RoleDefinitionId ] [-ObjectId ] [-SignInName ] [-ApplicationId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetByName ``` Get-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleAssignmentName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RoleAssignmentName Name of the role assignment. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleDefinition.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleDefinition.md index 526fbb636a00..e74c5d6e0488 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleDefinition.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultRoleDefinition.md @@ -15,19 +15,19 @@ List role definitions of a given managed HSM at a given scope. ### Interactive (Default) ``` Get-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### CustomOnly ``` Get-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] [-Custom] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByName ``` Get-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] -RoleDefinitionName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -130,6 +130,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RoleDefinitionName Name of the role definition to get. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultSecret.md index 7ab7ff66ba2e..b068b5f1d5a5 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultSecret.md @@ -16,55 +16,55 @@ Gets the secrets in a key vault. ### ByVaultName (Default) ``` Get-AzKeyVaultSecret [-VaultName] [[-Name] ] [-InRemovedState] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BySecretName ``` Get-AzKeyVaultSecret [-VaultName] [-Name] [-Version] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BySecretVersions ``` Get-AzKeyVaultSecret [-VaultName] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectVaultName ``` Get-AzKeyVaultSecret [-InputObject] [[-Name] ] [-InRemovedState] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectSecretName ``` Get-AzKeyVaultSecret [-InputObject] [-Name] [-Version] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByInputObjectSecretVersions ``` Get-AzKeyVaultSecret [-InputObject] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdVaultName ``` Get-AzKeyVaultSecret [-ResourceId] [[-Name] ] [-InRemovedState] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdSecretName ``` Get-AzKeyVaultSecret [-ResourceId] [-Name] [-Version] [-AsPlainText] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ByResourceIdSecretVersions ``` Get-AzKeyVaultSecret [-ResourceId] [-Name] [-IncludeVersions] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -407,6 +407,21 @@ Accept pipeline input: False Accept wildcard characters: True ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Get-AzKeyVaultSetting.md b/src/KeyVault/KeyVault/help/Get-AzKeyVaultSetting.md index 203741f72c82..3cc2a04d5079 100644 --- a/src/KeyVault/KeyVault/help/Get-AzKeyVaultSetting.md +++ b/src/KeyVault/KeyVault/help/Get-AzKeyVaultSetting.md @@ -15,19 +15,19 @@ Retrieves a specified key vault account setting or all available key vault accou ### GetSettingViaFlattenParameters (Default) ``` Get-AzKeyVaultSetting [-DefaultProfile ] [-HsmName] [[-Name] ] - [] + [-ProgressAction ] [] ``` ### GetSettingViaHsmObject ``` Get-AzKeyVaultSetting [-DefaultProfile ] [-HsmObject] [[-Name] ] - [] + [-ProgressAction ] [] ``` ### GetSettingViaHsmId ``` Get-AzKeyVaultSetting [-DefaultProfile ] [-HsmId] [[-Name] ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -192,6 +192,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/KeyVault/KeyVault/help/Import-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Import-AzKeyVaultCertificate.md index e9916dc3480a..acb88a49d60f 100644 --- a/src/KeyVault/KeyVault/help/Import-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Import-AzKeyVaultCertificate.md @@ -17,7 +17,7 @@ Imports a certificate to a key vault. ``` Import-AzKeyVaultCertificate [-VaultName] [-Name] -FilePath [-Password ] [-PolicyPath ] [-PolicyObject ] - [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,14 +26,14 @@ Import-AzKeyVaultCertificate [-VaultName] [-Name] -FilePath [-Name] -CertificateString [-ContentType ] [-Password ] [-PolicyPath ] [-PolicyObject ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ImportWithPrivateKeyFromCollection ``` Import-AzKeyVaultCertificate [-VaultName] [-Name] [-PolicyPath ] [-PolicyObject ] [-CertificateCollection] - [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -312,6 +312,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"} diff --git a/src/KeyVault/KeyVault/help/Import-AzKeyVaultSecurityDomain.md b/src/KeyVault/KeyVault/help/Import-AzKeyVaultSecurityDomain.md index e788d12afd47..93884ceec89f 100644 --- a/src/KeyVault/KeyVault/help/Import-AzKeyVaultSecurityDomain.md +++ b/src/KeyVault/KeyVault/help/Import-AzKeyVaultSecurityDomain.md @@ -15,21 +15,21 @@ Imports previously exported security domain data to a managed HSM. ### ByName (Default) ``` Import-AzKeyVaultSecurityDomain -Name -Keys -SecurityDomainPath [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByRestoredBlob ``` Import-AzKeyVaultSecurityDomain -Name -SecurityDomainPath [-ImportRestoredBlob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### GenerateExchangeKey ``` Import-AzKeyVaultSecurityDomain -Name -OutFile [-Force] [-DownloadExchangeKey] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -37,14 +37,14 @@ Import-AzKeyVaultSecurityDomain -Name -OutFile [-Force] [-Down ``` Import-AzKeyVaultSecurityDomain -InputObject -Keys -SecurityDomainPath [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### DoRestoreBlob ``` Import-AzKeyVaultSecurityDomain -Keys -SecurityDomainPath -OutFile -ExchangeKeyPath [-Force] [-RestoreBlob] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -228,6 +228,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RestoreBlob When specified, the security domain data will be decrypted and encrypted using generated ExchangeKey locally. diff --git a/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyOperation.md b/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyOperation.md index a16211f9bf85..96bcf1b57072 100644 --- a/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyOperation.md +++ b/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyOperation.md @@ -16,7 +16,7 @@ Performs operation like "Encrypt", "Decrypt", "Wrap" or "Unwrap" using a specifi ``` Invoke-AzKeyVaultKeyOperation [-Version ] -Operation -Algorithm [-Value ] [-ByteArrayValue ] [-Name] [-VaultName] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Invoke-AzKeyVaultKeyOperation [-Version ] -Operation -Algorithm ``` Invoke-AzKeyVaultKeyOperation [-Version ] -Operation -Algorithm [-Value ] [-ByteArrayValue ] [-HsmName] [-Name] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Invoke-AzKeyVaultKeyOperation [-Version ] -Operation -Algorithm ``` Invoke-AzKeyVaultKeyOperation [-Version ] -Operation -Algorithm [-Value ] [-ByteArrayValue ] [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -237,6 +237,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value The value to be operated. This parameter will be converted to byte array in UTF-8 encoding way. If your value can't be encoded by UTF-8, please use parameter ByteArrayValue as its alternative. diff --git a/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyRotation.md b/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyRotation.md index a1286e24f9d5..101b3a436187 100644 --- a/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyRotation.md +++ b/src/KeyVault/KeyVault/help/Invoke-AzKeyVaultKeyRotation.md @@ -15,13 +15,13 @@ Creates a new key version in Key Vault, stores it, then returns the new key. ### ByVaultName (Default) ``` Invoke-AzKeyVaultKeyRotation [-VaultName] [-Name] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByKeyInputObject ``` Invoke-AzKeyVaultKeyRotation [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -101,6 +101,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVault.md b/src/KeyVault/KeyVault/help/New-AzKeyVault.md index 69c12e99307a..fde3a29a5c2f 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVault.md @@ -18,7 +18,7 @@ New-AzKeyVault [-Name] [-ResourceGroupName] [-Location] ] [-PublicNetworkAccess ] [-Sku ] [-Tag ] [-NetworkRuleSet ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -305,6 +305,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. By default, we will enable public network access. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateAdministratorDetail.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateAdministratorDetail.md index 08d3451f5362..f29ae914f8a4 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateAdministratorDetail.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateAdministratorDetail.md @@ -16,7 +16,7 @@ Creates an in-memory certificate administrator details object. ``` New-AzKeyVaultCertificateAdministratorDetail [-FirstName ] [-LastName ] [-EmailAddress ] [-PhoneNumber ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -115,6 +115,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateOrganizationDetail.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateOrganizationDetail.md index 065f0125672b..ddabc1c0760c 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateOrganizationDetail.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificateOrganizationDetail.md @@ -16,7 +16,7 @@ Creates an in-memory certificate organization details object. ``` New-AzKeyVaultCertificateOrganizationDetail [-Id ] [-AdministratorDetails ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -87,6 +87,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificatePolicy.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificatePolicy.md index 0bf3ad357c64..5850ded82b66 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificatePolicy.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultCertificatePolicy.md @@ -22,7 +22,7 @@ New-AzKeyVaultCertificatePolicy [-IssuerName] [-SubjectName] [-Ekus ] [-ValidityInMonths ] [-CertificateType ] [-EmailAtNumberOfDaysBeforeExpiry ] [-EmailAtPercentageLifetime ] [-KeyType ] [-KeySize ] [-KeyNotExportable] [-CertificateTransparency ] - [-Curve ] [-DefaultProfile ] [-WhatIf] + [-Curve ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -35,7 +35,7 @@ New-AzKeyVaultCertificatePolicy [-IssuerName] [[-SubjectName] ] [-Ekus ] [-ValidityInMonths ] [-CertificateType ] [-EmailAtNumberOfDaysBeforeExpiry ] [-EmailAtPercentageLifetime ] [-KeyType ] [-KeySize ] [-KeyNotExportable] [-CertificateTransparency ] - [-Curve ] [-DefaultProfile ] [-WhatIf] + [-Curve ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -352,6 +352,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RenewAtNumberOfDaysBeforeExpiry Specifies the number of days before expiry after which the automatic process for certificate renewal begins. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultManagedHsm.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultManagedHsm.md index fe1f9c143619..8dfa27d0c978 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultManagedHsm.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultManagedHsm.md @@ -16,7 +16,7 @@ Creates a managed HSM. New-AzKeyVaultManagedHsm [-Name] [-ResourceGroupName] [-Location] [-Administrator] [-Sku ] -SoftDeleteRetentionInDays [-PublicNetworkAccess ] [-EnablePurgeProtection] [-UserAssignedIdentity ] [-Tag ] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -186,6 +186,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Controls permission for data plane traffic coming from public networks while private endpoint is enabled. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultNetworkRuleSetObject.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultNetworkRuleSetObject.md index 22a354b53a50..e9e06801bfbf 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultNetworkRuleSetObject.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultNetworkRuleSetObject.md @@ -16,7 +16,7 @@ Create an object representing the network rule settings. New-AzKeyVaultNetworkRuleSetObject [-DefaultAction ] [-Bypass ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-DefaultProfile ] - [-SubscriptionId ] [] + [-ProgressAction ] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the subscription. By default, cmdlets are executed in the subscription that is set in the current context. If the user specifies another subscription, the current cmdlet is executed in the subscription specified by the user. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleAssignment.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleAssignment.md index 43b85ac4b14e..bd27d4dc7193 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleAssignment.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleAssignment.md @@ -15,42 +15,42 @@ Assigns the specified RBAC role to the specified principal, at the specified sco ### DefinitionNameSignInName (Default) ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName - -SignInName [-DefaultProfile ] [-WhatIf] + -SignInName [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionNameApplicationId ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName - -ApplicationId [-DefaultProfile ] + -ApplicationId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionNameObjectId ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName - -ObjectId [-DefaultProfile ] [-WhatIf] + -ObjectId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionIdApplicationId ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId - -ApplicationId [-DefaultProfile ] + -ApplicationId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionIdObjectId ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId - -ObjectId [-DefaultProfile ] [-WhatIf] + -ObjectId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionIdSignInName ``` New-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId - -SignInName [-DefaultProfile ] [-WhatIf] + -SignInName [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -155,6 +155,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RoleDefinitionId Role Id the principal is assigned to. diff --git a/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleDefinition.md b/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleDefinition.md index 92c281fe17a3..b100576bd49d 100644 --- a/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleDefinition.md +++ b/src/KeyVault/KeyVault/help/New-AzKeyVaultRoleDefinition.md @@ -15,14 +15,14 @@ Creates a custom role definition on an HSM. ### InputObject (Default) ``` New-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] [-Role] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputFile ``` New-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -104,6 +104,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Role A role definition object. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVault.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVault.md index e7127dbceef3..712075afdc5f 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVault.md @@ -16,42 +16,42 @@ Deletes a key vault. ### ByAvailableVault (Default) ``` Remove-AzKeyVault [-VaultName] [[-ResourceGroupName] ] [[-Location] ] [-Force] - [-AsJob] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-AsJob] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByDeletedVault ``` Remove-AzKeyVault [-VaultName] [-Location] [-InRemovedState] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByAvailableVault ``` Remove-AzKeyVault [-InputObject] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByDeletedVault ``` Remove-AzKeyVault [-InputObject] [-InRemovedState] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByAvailableVault ``` Remove-AzKeyVault [-ResourceId] [[-Location] ] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByDeletedVault ``` Remove-AzKeyVault [-ResourceId] [-Location] [-InRemovedState] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -205,6 +205,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of a resource group. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultAccessPolicy.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultAccessPolicy.md index 879c38cbc83b..dfa5032a23a2 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultAccessPolicy.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultAccessPolicy.md @@ -16,7 +16,7 @@ Removes all permissions for a user or application from a key vault. ### ByUserPrincipalName (Default) ``` Remove-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -UserPrincipalName - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -24,20 +24,20 @@ Remove-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] [[-ResourceGroupName] ] -ObjectId [-ApplicationId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByServicePrincipalName ``` Remove-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -ServicePrincipalName [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByEmail ``` Remove-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -EmailAddress - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -45,35 +45,35 @@ Remove-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] [[-ResourceGroupName] ] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByObjectId ``` Remove-AzKeyVaultAccessPolicy [-InputObject] -ObjectId [-ApplicationId ] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByServicePrincipalName ``` Remove-AzKeyVaultAccessPolicy [-InputObject] -ServicePrincipalName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByUserPrincipalName ``` Remove-AzKeyVaultAccessPolicy [-InputObject] -UserPrincipalName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByEmail ``` Remove-AzKeyVaultAccessPolicy [-InputObject] -EmailAddress [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -81,35 +81,35 @@ Remove-AzKeyVaultAccessPolicy [-InputObject] -EmailAddress ``` Remove-AzKeyVaultAccessPolicy [-InputObject] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByObjectId ``` Remove-AzKeyVaultAccessPolicy [-ResourceId] -ObjectId [-ApplicationId ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByServicePrincipalName ``` Remove-AzKeyVaultAccessPolicy [-ResourceId] -ServicePrincipalName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByUserPrincipalName ``` Remove-AzKeyVaultAccessPolicy [-ResourceId] -UserPrincipalName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByEmail ``` Remove-AzKeyVaultAccessPolicy [-ResourceId] -EmailAddress [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -117,7 +117,7 @@ Remove-AzKeyVaultAccessPolicy [-ResourceId] -EmailAddress [-Pa ``` Remove-AzKeyVaultAccessPolicy [-ResourceId] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -337,6 +337,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the key vault whose access policy is being modified. If not specified, this cmdlet searches for the key vault in the current subscription. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificate.md index 2ce7714490d4..52f32cdd9326 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificate.md @@ -16,14 +16,14 @@ Removes a certificate from a key vault. ### ByVaultNameAndName (Default) ``` Remove-AzKeyVaultCertificate [-VaultName] [-Name] [-InRemovedState] [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByObject ``` Remove-AzKeyVaultCertificate [-InputObject] [-InRemovedState] [-Force] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -180,6 +180,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault from which this cmdlet removes a certificate. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateContact.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateContact.md index b0f086a02826..ee3bae36c9fd 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateContact.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateContact.md @@ -16,21 +16,21 @@ Deletes a contact that is registered for certificate notifications from a key va ### ByName (Default) ``` Remove-AzKeyVaultCertificateContact [-VaultName] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByObject ``` Remove-AzKeyVaultCertificateContact [-InputObject] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Remove-AzKeyVaultCertificateContact [-ResourceId] [-EmailAddress] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -118,6 +118,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateIssuer.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateIssuer.md index e51f00b1119f..d6a8966f7e2d 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateIssuer.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateIssuer.md @@ -16,14 +16,14 @@ Deletes a certificate issuer from a key vault. ### Default (Default) ``` Remove-AzKeyVaultCertificateIssuer [-VaultName] [-Name] [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzKeyVaultCertificateIssuer [-InputObject] [-Force] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -126,6 +126,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of a key vault. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateOperation.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateOperation.md index d5f8892e0e00..439256b020da 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateOperation.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultCertificateOperation.md @@ -16,14 +16,14 @@ Deletes a certificate operation from a key vault. ### Default ``` Remove-AzKeyVaultCertificateOperation [-VaultName] [-Name] [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzKeyVaultCertificateOperation [-InputObject] [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -138,6 +138,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of a key vault. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultKey.md index d21843afa26d..c6caa60e14e5 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultKey.md @@ -16,21 +16,21 @@ Deletes a key in a key vault. ### ByVaultName (Default) ``` Remove-AzKeyVaultKey [-VaultName] [-Name] [-Force] [-PassThru] [-InRemovedState] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmByVaultName ``` Remove-AzKeyVaultKey -HsmName [-Name] [-Force] [-PassThru] [-InRemovedState] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Remove-AzKeyVaultKey [-InputObject] [-Force] [-PassThru] [-InRemovedState] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -197,6 +197,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault from which to remove the key. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsm.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsm.md index 3c61b23c4be9..022382f5a0ae 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsm.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsm.md @@ -15,42 +15,42 @@ Deletes/Purges a managed HSM. ### RemoveManagedHsmByName (Default) ``` Remove-AzKeyVaultManagedHsm [-Name] [[-ResourceGroupName] ] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### RemoveDeletedManagedHsmByName ``` Remove-AzKeyVaultManagedHsm [-Name] [-Location] [-InRemovedState] [-Force] [-AsJob] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### RemoveManagedHsmByInputObject ``` Remove-AzKeyVaultManagedHsm [-InputObject] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### RemoveDeletedManagedHsmByInputObject ``` Remove-AzKeyVaultManagedHsm [-InputObject] [-InRemovedState] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### RemoveManagedHsmByResourceId ``` Remove-AzKeyVaultManagedHsm [-ResourceId] [-Force] [-AsJob] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### RemoveDeletedManagedHsmByResourceId ``` Remove-AzKeyVaultManagedHsm [-ResourceId] [-Location] [-InRemovedState] [-Force] [-AsJob] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -219,6 +219,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of resource group for Azure managed HSM to remove. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsmRegion.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsmRegion.md index 37adfe30d328..648168041acd 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsmRegion.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedHsmRegion.md @@ -14,7 +14,7 @@ The List operation gets information about the regions associated with the manage ``` Remove-AzKeyVaultManagedHsmRegion -HsmName -ResourceGroupName [-SubscriptionId ] - -Region [-DefaultProfile ] [-PassThru] [-AsJob] + -Region [-DefaultProfile ] [-PassThru] [-AsJob] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -100,6 +100,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Region List of regions to be removed associated with the managed hsm pool. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageAccount.md index 8b3d830a06bc..43e84d6c664e 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageAccount.md @@ -15,7 +15,7 @@ Removes a Key Vault managed Azure Storage Account and all associated SAS definit ### ByDefinitionName (Default) ``` Remove-AzKeyVaultManagedStorageAccount [-VaultName] [-AccountName] [-InRemovedState] [-Force] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,7 +23,7 @@ Remove-AzKeyVaultManagedStorageAccount [-VaultName] [-AccountName] [-InRemovedState] [-Force] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageSasDefinition.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageSasDefinition.md index 44b5cb8c2205..7a352a071771 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageSasDefinition.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultManagedStorageSasDefinition.md @@ -15,14 +15,14 @@ Removes a Key Vault managed Azure Storage SAS definitions. ### ByDefinitionName (Default) ``` Remove-AzKeyVaultManagedStorageSasDefinition [-VaultName] [-AccountName] [-Name] - [-Force] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-Force] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Remove-AzKeyVaultManagedStorageSasDefinition [-InputObject] - [-Force] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-Force] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -162,6 +162,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultNetworkRule.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultNetworkRule.md index 606ec224aece..ab92f387ae30 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultNetworkRule.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultNetworkRule.md @@ -16,21 +16,21 @@ Removes a network rule from a key vault. ``` Remove-AzKeyVaultNetworkRule [-VaultName] [[-ResourceGroupName] ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByInputObject ``` Remove-AzKeyVaultNetworkRule [-InputObject] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByResourceId ``` Remove-AzKeyVaultNetworkRule [-ResourceId] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -147,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the key vault whose network rule is being modified. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleAssignment.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleAssignment.md index 6b158fcceb95..5febbf4cf522 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleAssignment.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleAssignment.md @@ -16,20 +16,20 @@ Removes a role assignment to the specified principal who is assigned to a partic ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName -SignInName [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionNameApplicationId ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName -ApplicationId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionNameObjectId ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionName - -ObjectId [-PassThru] [-DefaultProfile ] + -ObjectId [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -37,13 +37,13 @@ Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefin ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId -ApplicationId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DefinitionIdObjectId ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId - -ObjectId [-PassThru] [-DefaultProfile ] + -ObjectId [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -51,20 +51,20 @@ Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefin ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] -RoleDefinitionId -SignInName [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RemoveByNameParameterSet ``` Remove-AzKeyVaultRoleAssignment [-HsmName] [-Scope ] [-PassThru] -RoleAssignmentName - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzKeyVaultRoleAssignment [-Scope ] [-PassThru] -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RoleAssignmentName Name of the role assignment. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleDefinition.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleDefinition.md index 3dba76f717ba..7b60771d7850 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleDefinition.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultRoleDefinition.md @@ -15,14 +15,14 @@ Removes a custom role definition from an HSM. ### ByName (Default) ``` Remove-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] -RoleName [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzKeyVaultRoleDefinition [-HsmName] [-Scope ] -InputObject - [-Force] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-Force] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -129,6 +129,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RoleName Name of the role definition to get. diff --git a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultSecret.md index cf02f93bf3bd..4216c4644dfc 100644 --- a/src/KeyVault/KeyVault/help/Remove-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Remove-AzKeyVaultSecret.md @@ -15,14 +15,14 @@ Deletes a secret in a key vault. ### ByVaultName (Default) ``` Remove-AzKeyVaultSecret [-VaultName] [-Name] [-Force] [-PassThru] [-InRemovedState] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Remove-AzKeyVaultSecret [-InputObject] [-Force] [-PassThru] [-InRemovedState] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -200,6 +200,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault to which the secret belongs. This cmdlet constructs the FQDN of a key vault based on the name that this parameter specifies and your current environment. diff --git a/src/KeyVault/KeyVault/help/Restore-AzKeyVault.md b/src/KeyVault/KeyVault/help/Restore-AzKeyVault.md index 60e32acadbf7..b80b4205f2c5 100644 --- a/src/KeyVault/KeyVault/help/Restore-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/Restore-AzKeyVault.md @@ -16,7 +16,7 @@ Fully restores a managed HSM from backup. ``` Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] [-HsmName] -StorageAccountName -StorageContainerName [-SasToken ] - [-UseUserManagedIdentity] [-DefaultProfile ] + [-UseUserManagedIdentity] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] [-HsmN ``` Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] [-HsmName] -StorageContainerUri [-SasToken ] [-UseUserManagedIdentity] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] [-HsmN ``` Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] -StorageContainerUri [-SasToken ] [-UseUserManagedIdentity] -HsmObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -40,7 +40,7 @@ Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] -Stora ``` Restore-AzKeyVault -BackupFolder [-KeyName ] [-PassThru] -StorageAccountName -StorageContainerName [-SasToken ] [-UseUserManagedIdentity] -HsmObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -161,6 +161,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SasToken The shared access signature (SAS) token to authenticate the storage account. diff --git a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultCertificate.md index d0206d92ccb9..61004a328c78 100644 --- a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultCertificate.md @@ -15,21 +15,21 @@ Restores a certificate in a key vault from a backup file. ### ByVaultName (Default) ``` Restore-AzKeyVaultCertificate [-VaultName] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Restore-AzKeyVaultCertificate [-InputObject] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Restore-AzKeyVaultCertificate [-ResourceId] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -134,6 +134,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id diff --git a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultKey.md index c7c70680e304..8fc225c3acf2 100644 --- a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultKey.md @@ -16,39 +16,39 @@ Creates a key in a key vault from a backed-up key. ### ByVaultName (Default) ``` Restore-AzKeyVaultKey [-VaultName] [-InputFile] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmByVaultName ``` Restore-AzKeyVaultKey -HsmName [-InputFile] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Restore-AzKeyVaultKey [-InputObject] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmByInputObject ``` Restore-AzKeyVaultKey [-HsmObject] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Restore-AzKeyVaultKey [-ResourceId] [-InputFile] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmByResourceId ``` Restore-AzKeyVaultKey -HsmResourceId [-InputFile] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -175,6 +175,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id diff --git a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultManagedStorageAccount.md index aea17b2c4ab3..220825aa34a1 100644 --- a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultManagedStorageAccount.md @@ -15,21 +15,21 @@ Restores a managed storage account in a key vault from a backup file. ### ByVaultName (Default) ``` Restore-AzKeyVaultManagedStorageAccount [-VaultName] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Restore-AzKeyVaultManagedStorageAccount [-InputObject] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Restore-AzKeyVaultManagedStorageAccount [-ResourceId] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -113,6 +113,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id diff --git a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultSecret.md index e69f28cd5ff2..ca97c3056bb8 100644 --- a/src/KeyVault/KeyVault/help/Restore-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Restore-AzKeyVaultSecret.md @@ -16,20 +16,20 @@ Creates a secret in a key vault from a backed-up secret. ### ByVaultName (Default) ``` Restore-AzKeyVaultSecret [-VaultName] [-InputFile] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByInputObject ``` Restore-AzKeyVaultSecret [-InputObject] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByResourceId ``` Restore-AzKeyVaultSecret [-ResourceId] [-InputFile] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -112,6 +112,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId KeyVault Resource Id diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultAccessPolicy.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultAccessPolicy.md index 6deebbdcbd34..e41170c5d30c 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultAccessPolicy.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultAccessPolicy.md @@ -18,7 +18,7 @@ Grants or modifies existing permissions for a user, application, or security gro Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -UserPrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByObjectId @@ -26,7 +26,7 @@ Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -ObjectId [-ApplicationId ] [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-BypassObjectIdValidation] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -35,7 +35,7 @@ Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -ServicePrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ByEmailAddress @@ -43,14 +43,14 @@ Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] -EmailAddress [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ForVault ``` Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -59,7 +59,7 @@ Set-AzKeyVaultAccessPolicy [-VaultName] [[-ResourceGroupName] ] Set-AzKeyVaultAccessPolicy [-InputObject] -ObjectId [-ApplicationId ] [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-BypassObjectIdValidation] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -68,7 +68,7 @@ Set-AzKeyVaultAccessPolicy [-InputObject] -ObjectId -ServicePrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByUserPrincipalName @@ -76,7 +76,7 @@ Set-AzKeyVaultAccessPolicy [-InputObject] -ServicePrinc Set-AzKeyVaultAccessPolicy [-InputObject] -UserPrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectByEmailAddress @@ -84,14 +84,14 @@ Set-AzKeyVaultAccessPolicy [-InputObject] -UserPrincipa Set-AzKeyVaultAccessPolicy [-InputObject] -EmailAddress [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObjectForVault ``` Set-AzKeyVaultAccessPolicy [-InputObject] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -100,7 +100,7 @@ Set-AzKeyVaultAccessPolicy [-InputObject] [-EnabledForD Set-AzKeyVaultAccessPolicy [-ResourceId] -ObjectId [-ApplicationId ] [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-BypassObjectIdValidation] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -109,14 +109,14 @@ Set-AzKeyVaultAccessPolicy [-ResourceId] -ObjectId [-Applicati Set-AzKeyVaultAccessPolicy [-ResourceId] -ServicePrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### ResourceIdByUserPrincipalName ``` Set-AzKeyVaultAccessPolicy [-ResourceId] -UserPrincipalName [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -124,7 +124,7 @@ Set-AzKeyVaultAccessPolicy [-ResourceId] -UserPrincipalName [- ``` Set-AzKeyVaultAccessPolicy [-ResourceId] -EmailAddress [-PermissionsToKeys ] [-PermissionsToSecrets ] [-PermissionsToCertificates ] [-PermissionsToStorage ] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -132,7 +132,7 @@ Set-AzKeyVaultAccessPolicy [-ResourceId] -EmailAddress [-Permi ``` Set-AzKeyVaultAccessPolicy [-ResourceId] [-EnabledForDeployment] [-EnabledForTemplateDeployment] [-EnabledForDiskEncryption] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -583,6 +583,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of a resource group. diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificateIssuer.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificateIssuer.md index 4e1591272385..14b5487ebaa6 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificateIssuer.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificateIssuer.md @@ -18,7 +18,7 @@ Sets a certificate issuer in a key vault. Set-AzKeyVaultCertificateIssuer [-VaultName] [-Name] -IssuerProvider [-AccountId ] [-ApiKey ] [-OrganizationDetails ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Set-AzKeyVaultCertificateIssuer [-VaultName] [-Name] -IssuerPr ``` Set-AzKeyVaultCertificateIssuer [-VaultName] [-Name] -InputObject [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -176,6 +176,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of the key vault. diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificatePolicy.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificatePolicy.md index 71b881a07f3c..2796863f32e7 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificatePolicy.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultCertificatePolicy.md @@ -22,7 +22,7 @@ Set-AzKeyVaultCertificatePolicy [-VaultName] [-Name] [-RenewAt [-Ekus ] [-ValidityInMonths ] [-IssuerName ] [-CertificateType ] [-EmailAtNumberOfDaysBeforeExpiry ] [-EmailAtPercentageLifetime ] [-KeyType ] [-KeySize ] [-KeyNotExportable] [-CertificateTransparency ] [-PassThru] - [-Curve ] [-DefaultProfile ] [-WhatIf] + [-Curve ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Set-AzKeyVaultCertificatePolicy [-VaultName] [-Name] [-InputObject] [-EmailAtNumberOfDaysBeforeExpiry ] [-EmailAtPercentageLifetime ] [-KeyType ] [-KeySize ] [-CertificateTransparency ] [-PassThru] [-Curve ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ExpandedRenewNumber @@ -44,7 +44,7 @@ Set-AzKeyVaultCertificatePolicy [-VaultName] [-Name] -RenewAtN [-Ekus ] [-ValidityInMonths ] [-IssuerName ] [-CertificateType ] [-EmailAtNumberOfDaysBeforeExpiry ] [-EmailAtPercentageLifetime ] [-KeyType ] [-KeySize ] [-KeyNotExportable] [-CertificateTransparency ] [-PassThru] - [-Curve ] [-DefaultProfile ] [-WhatIf] + [-Curve ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -365,6 +365,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RenewAtNumberOfDaysBeforeExpiry Specifies the number of days before expiry after which the automatic process for certificate renewal begins. diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultKeyRotationPolicy.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultKeyRotationPolicy.md index 5465b125e100..281a084514ac 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultKeyRotationPolicy.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultKeyRotationPolicy.md @@ -16,13 +16,13 @@ Sets the key rotation policy for the specified key in Key Vault. ``` Set-AzKeyVaultKeyRotationPolicy [-VaultName] [-Name] [-ExpiresIn ] [-KeyRotationLifetimeAction ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SetByRotationPolicyFileViaVaultName ``` Set-AzKeyVaultKeyRotationPolicy [-VaultName] [-Name] -PolicyPath - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -30,20 +30,20 @@ Set-AzKeyVaultKeyRotationPolicy [-VaultName] [-Name] -PolicyPa ``` Set-AzKeyVaultKeyRotationPolicy [-InputObject] [-ExpiresIn ] [-KeyRotationLifetimeAction ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SetByRotationPolicyFileViaKeyInputObject ``` Set-AzKeyVaultKeyRotationPolicy [-InputObject] -PolicyPath - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ByKeyRotationPolicyInputObject ``` Set-AzKeyVaultKeyRotationPolicy [-KeyRotationPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -258,6 +258,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultManagedStorageSasDefinition.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultManagedStorageSasDefinition.md index 58574c2007af..7ea1cb802ff4 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultManagedStorageSasDefinition.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultManagedStorageSasDefinition.md @@ -16,7 +16,7 @@ Sets a Shared Access Signature (SAS) definition with Key Vault for a given Key V ``` Set-AzKeyVaultManagedStorageSasDefinition [-VaultName] [-AccountName] [-Name] [-TemplateUri] [-SasType] [-Disable] [-Tag ] -ValidityPeriod - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Set-AzKeyVaultManagedStorageSasDefinition [-VaultName] [-AccountName] < ``` Set-AzKeyVaultManagedStorageSasDefinition [-InputObject] [-Name] [-TemplateUri] [-SasType] [-Disable] [-Tag ] - -ValidityPeriod [-DefaultProfile ] + -ValidityPeriod [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SasType Storage SAS type. diff --git a/src/KeyVault/KeyVault/help/Set-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Set-AzKeyVaultSecret.md index 285e7206f7b5..ccd847e7891e 100644 --- a/src/KeyVault/KeyVault/help/Set-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Set-AzKeyVaultSecret.md @@ -17,7 +17,7 @@ Creates or updates a secret in a key vault. ``` Set-AzKeyVaultSecret [-VaultName] [-Name] [-SecretValue] [-Disable] [-Expires ] [-NotBefore ] [-ContentType ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,7 +25,7 @@ Set-AzKeyVaultSecret [-VaultName] [-Name] [-SecretValue] [-SecretValue] [-Disable] [-Expires ] [-NotBefore ] [-ContentType ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -226,6 +226,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecretValue Specifies the value for the secret as a **SecureString** object. To obtain a **SecureString** object, use the **ConvertTo-SecureString** cmdlet. For more information, type `Get-Help diff --git a/src/KeyVault/KeyVault/help/Stop-AzKeyVaultCertificateOperation.md b/src/KeyVault/KeyVault/help/Stop-AzKeyVaultCertificateOperation.md index 1ff01d1a913a..6e9e5cd4ef8d 100644 --- a/src/KeyVault/KeyVault/help/Stop-AzKeyVaultCertificateOperation.md +++ b/src/KeyVault/KeyVault/help/Stop-AzKeyVaultCertificateOperation.md @@ -16,14 +16,14 @@ Cancels a certificate operation in key vault. ### Default (Default) ``` Stop-AzKeyVaultCertificateOperation [-VaultName] [-Name] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Stop-AzKeyVaultCertificateOperation [-InputObject] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -114,6 +114,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Specifies the name of a key vault. diff --git a/src/KeyVault/KeyVault/help/Test-AzKeyVaultManagedHsmNameAvailability.md b/src/KeyVault/KeyVault/help/Test-AzKeyVaultManagedHsmNameAvailability.md index 925c3ab9a737..2eca648f8e02 100644 --- a/src/KeyVault/KeyVault/help/Test-AzKeyVaultManagedHsmNameAvailability.md +++ b/src/KeyVault/KeyVault/help/Test-AzKeyVaultManagedHsmNameAvailability.md @@ -15,19 +15,19 @@ Checks that the managed hsm name is valid and is not already in use. ### CheckExpanded (Default) ``` Test-AzKeyVaultManagedHsmNameAvailability [-SubscriptionId ] -Name - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonFilePath ``` Test-AzKeyVaultManagedHsmNameAvailability [-SubscriptionId ] -JsonFilePath - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonString ``` Test-AzKeyVaultManagedHsmNameAvailability [-SubscriptionId ] -JsonString - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -126,6 +126,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. diff --git a/src/KeyVault/KeyVault/help/Test-AzKeyVaultNameAvailability.md b/src/KeyVault/KeyVault/help/Test-AzKeyVaultNameAvailability.md index ad925c8e6e64..d8f5842ac14c 100644 --- a/src/KeyVault/KeyVault/help/Test-AzKeyVaultNameAvailability.md +++ b/src/KeyVault/KeyVault/help/Test-AzKeyVaultNameAvailability.md @@ -15,19 +15,19 @@ Checks that the vault name is valid and is not already in use. ### CheckExpanded (Default) ``` Test-AzKeyVaultNameAvailability [-SubscriptionId ] -Name [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonFilePath ``` Test-AzKeyVaultNameAvailability [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CheckViaJsonString ``` Test-AzKeyVaultNameAvailability [-SubscriptionId ] -JsonString [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -126,6 +126,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultCertificateRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultCertificateRemoval.md index 3d96712342ca..f48b6628179d 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultCertificateRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultCertificateRemoval.md @@ -15,14 +15,14 @@ Recovers a deleted certificate in a key vault into an active state. ### Default (Default) ``` Undo-AzKeyVaultCertificateRemoval [-VaultName] [-Name] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Undo-AzKeyVaultCertificateRemoval [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -123,6 +123,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultKeyRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultKeyRemoval.md index 4252dcda3466..0f53304ee8e7 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultKeyRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultKeyRemoval.md @@ -15,19 +15,19 @@ Recovers a deleted key in a key vault into an active state. ### Default (Default) ``` Undo-AzKeyVaultKeyRemoval [-VaultName] [-Name] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### HsmInteractive ``` Undo-AzKeyVaultKeyRemoval -HsmName [-Name] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Undo-AzKeyVaultKeyRemoval [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -122,6 +122,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedHsmRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedHsmRemoval.md index a41d058efb5c..91855f8ae8f7 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedHsmRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedHsmRemoval.md @@ -15,14 +15,14 @@ Recover a managed HSM. ### Default (Default) ``` Undo-AzKeyVaultManagedHsmRemoval [-Name] [-ResourceGroupName] [-Location] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObject ``` Undo-AzKeyVaultManagedHsmRemoval [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the deleted HSM resource group. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageAccountRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageAccountRemoval.md index 88e229683917..b54e554b1016 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageAccountRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageAccountRemoval.md @@ -15,14 +15,14 @@ Recovers a previously deleted KeyVault-managed storage account. ### Default (Default) ``` Undo-AzKeyVaultManagedStorageAccountRemoval [-VaultName] [-Name] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Undo-AzKeyVaultManagedStorageAccountRemoval [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -102,6 +102,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageSasDefinitionRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageSasDefinitionRemoval.md index 82feb132ddd1..c921fa24be0c 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageSasDefinitionRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultManagedStorageSasDefinitionRemoval.md @@ -15,7 +15,7 @@ Recovers a previously deleted KeyVault-managed storage SAS definition. ### Default (Default) ``` Undo-AzKeyVaultManagedStorageSasDefinitionRemoval [-VaultName] [-AccountName] - [-Name] [-DefaultProfile ] [-WhatIf] + [-Name] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,7 +23,7 @@ Undo-AzKeyVaultManagedStorageSasDefinitionRemoval [-VaultName] [-Accoun ``` Undo-AzKeyVaultManagedStorageSasDefinitionRemoval [-AccountName] [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -117,6 +117,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultRemoval.md index 6b8a1c14db50..8080e84d1e1f 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultRemoval.md @@ -15,14 +15,14 @@ Recovers a deleted key vault into an active state. ### Default (Default) ``` Undo-AzKeyVaultRemoval [-VaultName] [-ResourceGroupName] [-Location] - [-Tag ] [-DefaultProfile ] [-WhatIf] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### InputObject ``` Undo-AzKeyVaultRemoval [-InputObject] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -122,6 +122,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of an existing resource group in which to create the key vault. diff --git a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultSecretRemoval.md b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultSecretRemoval.md index 418f7fdc540f..8a910d833c84 100644 --- a/src/KeyVault/KeyVault/help/Undo-AzKeyVaultSecretRemoval.md +++ b/src/KeyVault/KeyVault/help/Undo-AzKeyVaultSecretRemoval.md @@ -15,13 +15,13 @@ Recovers a deleted secret in a key vault into an active state. ### Default (Default) ``` Undo-AzKeyVaultSecretRemoval [-VaultName] [-Name] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Undo-AzKeyVaultSecretRemoval [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -101,6 +101,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVault.md b/src/KeyVault/KeyVault/help/Update-AzKeyVault.md index 7940f03e2b4d..cc498dedcddb 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVault.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVault.md @@ -16,7 +16,7 @@ Update the state of an Azure key vault. ``` Update-AzKeyVault -ResourceGroupName -VaultName [-EnablePurgeProtection] [-EnableRbacAuthorization ] [-PublicNetworkAccess ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -24,14 +24,14 @@ Update-AzKeyVault -ResourceGroupName -VaultName [-EnablePurgeP ``` Update-AzKeyVault -InputObject [-EnablePurgeProtection] [-EnableRbacAuthorization ] [-PublicNetworkAccess ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ### UpdateByResourceIdParameterSet ``` Update-AzKeyVault -ResourceId [-EnablePurgeProtection] [-EnableRbacAuthorization ] [-PublicNetworkAccess ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -131,6 +131,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Specifies whether the vault will accept traffic from public internet. If set to 'disabled' all traffic except private endpoint traffic and that that originates from trusted services will be blocked. This will override the set firewall rules, meaning that even if the firewall rules are present we will not honor the rules. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultCertificate.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultCertificate.md index 80a50ab26fe4..383d8a95a3e4 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultCertificate.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultCertificate.md @@ -15,7 +15,7 @@ Modifies editable attributes of a certificate. ### ByName (Default) ``` Update-AzKeyVaultCertificate [-VaultName] [-Name] [[-Version] ] [-Enable ] - [-Tag ] [-PassThru] [-DefaultProfile ] + [-Tag ] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,7 +23,7 @@ Update-AzKeyVaultCertificate [-VaultName] [-Name] [[-Version] ``` Update-AzKeyVaultCertificate [-InputObject] [[-Version] ] [-Enable ] [-Tag ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -162,6 +162,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag A hashtable representing certificate tags. If not specified, the existing tags of the sertificate remain unchanged. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultKey.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultKey.md index 6c2d400bca0d..8084c8c998a5 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultKey.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultKey.md @@ -16,7 +16,7 @@ Updates the attributes of a key in a key vault. ``` Update-AzKeyVaultKey [-VaultName] [-Name] [[-Version] ] [-Enable ] [-Expires ] [-NotBefore ] [-KeyOps ] [-Tag ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzKeyVaultKey [-VaultName] [-Name] [[-Version] ``` Update-AzKeyVaultKey -HsmName [-Name] [[-Version] ] [-Enable ] [-Expires ] [-NotBefore ] [-KeyOps ] [-Immutable] [-ReleasePolicyPath ] - [-Tag ] [-PassThru] [-DefaultProfile ] + [-Tag ] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Update-AzKeyVaultKey -HsmName [-Name] [[-Version] ] [- ``` Update-AzKeyVaultKey [-InputObject] [[-Version] ] [-Enable ] [-Expires ] [-NotBefore ] [-KeyOps ] [-Tag ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -251,6 +251,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ReleasePolicyPath A path to a file containing JSON policy definition. The policy rules under which a key can be exported. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedHsm.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedHsm.md index 60729ce0ad08..595fe153a129 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedHsm.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedHsm.md @@ -16,7 +16,7 @@ Update the state of an Azure managed HSM. ``` Update-AzKeyVaultManagedHsm -Name -ResourceGroupName [-EnablePurgeProtection] [-PublicNetworkAccess ] [-UserAssignedIdentity ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -24,7 +24,7 @@ Update-AzKeyVaultManagedHsm -Name -ResourceGroupName [-EnableP ``` Update-AzKeyVaultManagedHsm -InputObject [-EnablePurgeProtection] [-PublicNetworkAccess ] [-UserAssignedIdentity ] [-Tag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -32,7 +32,7 @@ Update-AzKeyVaultManagedHsm -InputObject [-EnablePurgeProtection] ``` Update-AzKeyVaultManagedHsm -ResourceId [-EnablePurgeProtection] [-PublicNetworkAccess ] [-UserAssignedIdentity ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [-SubscriptionId ] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` ## DESCRIPTION @@ -193,6 +193,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Controls permission for data plane traffic coming from public networks while private endpoint is enabled. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccount.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccount.md index 35adfa33cd67..a3087c8962bb 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccount.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccount.md @@ -16,7 +16,7 @@ Update editable attributes of a Key Vault managed Azure Storage Account. ``` Update-AzKeyVaultManagedStorageAccount [-VaultName] [-AccountName] [-ActiveKeyName ] [-AutoRegenerateKey ] [-RegenerationPeriod ] [-Enable ] [-Tag ] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzKeyVaultManagedStorageAccount [-VaultName] [-AccountName] [-ActiveKeyName ] [-AutoRegenerateKey ] [-RegenerationPeriod ] [-Enable ] - [-Tag ] [-PassThru] [-DefaultProfile ] + [-Tag ] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -181,6 +181,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RegenerationPeriod Regeneration period. If auto regenerate key is enabled, this value specifies the timespan after which managed storage account's inactive keygets auto regenerated and becomes the active key. If diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccountKey.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccountKey.md index f11a7dad37d9..87a8d9621c3b 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccountKey.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultManagedStorageAccountKey.md @@ -15,7 +15,7 @@ Regenerates the specified key of Key Vault managed Azure Storage Account. ### ByDefinitionName (Default) ``` Update-AzKeyVaultManagedStorageAccountKey [-VaultName] [-AccountName] [-KeyName] - [-Force] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-Force] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -23,7 +23,7 @@ Update-AzKeyVaultManagedStorageAccountKey [-VaultName] [-AccountName] < ``` Update-AzKeyVaultManagedStorageAccountKey [-InputObject] [-KeyName] [-Force] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VaultName Vault name. Cmdlet constructs the FQDN of a vault based on the name and currently selected environment. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultNetworkRuleSet.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultNetworkRuleSet.md index b2aaf109bf2e..9d29124385c7 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultNetworkRuleSet.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultNetworkRuleSet.md @@ -17,7 +17,7 @@ Updates the network rule set on a key vault. Update-AzKeyVaultNetworkRuleSet [-VaultName] [[-ResourceGroupName] ] [-DefaultAction ] [-Bypass ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -26,7 +26,7 @@ Update-AzKeyVaultNetworkRuleSet [-VaultName] [[-ResourceGroupName] [-DefaultAction ] [-Bypass ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -35,7 +35,7 @@ Update-AzKeyVaultNetworkRuleSet [-InputObject] Update-AzKeyVaultNetworkRuleSet [-ResourceId] [-DefaultAction ] [-Bypass ] [-IpAddressRange ] [-VirtualNetworkResourceId ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [-SubscriptionId ] [] ``` @@ -200,6 +200,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Specifies the name of the resource group associated with the key vault whose network rule is being modified. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultSecret.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultSecret.md index 354fbb09aad6..73c8f5aaf8a5 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultSecret.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultSecret.md @@ -16,7 +16,7 @@ Updates attributes of a secret in a key vault. ``` Update-AzKeyVaultSecret [-VaultName] [-Name] [[-Version] ] [-Enable ] [-Expires ] [-NotBefore ] [-ContentType ] [-Tag ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzKeyVaultSecret [-VaultName] [-Name] [[-Version] [[-Version] ] [-Enable ] [-Expires ] [-NotBefore ] [-ContentType ] [-Tag ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -228,6 +228,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Tag A hashtable representing secret tags. If not specified, the existing tags of the secret remain unchanged. diff --git a/src/KeyVault/KeyVault/help/Update-AzKeyVaultSetting.md b/src/KeyVault/KeyVault/help/Update-AzKeyVaultSetting.md index e2dd05fb4c67..3f826b7fbfc6 100644 --- a/src/KeyVault/KeyVault/help/Update-AzKeyVaultSetting.md +++ b/src/KeyVault/KeyVault/help/Update-AzKeyVaultSetting.md @@ -15,28 +15,28 @@ Update specific setting associated with the managed HSM. ### UpdateSettingViaFlattenValues (Default) ``` Update-AzKeyVaultSetting [-HsmName] [-Name] [-Value] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateSettingViaInputObject ``` Update-AzKeyVaultSetting [[-HsmName] ] [[-Value] ] [-InputObject] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateSettingViaHsmObject ``` Update-AzKeyVaultSetting [-Name] [-Value] [-PassThru] - [-DefaultProfile ] [-HsmObject] + [-DefaultProfile ] [-HsmObject] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateSettingViaHsmId ``` Update-AzKeyVaultSetting [-Name] [-Value] [-PassThru] - [-DefaultProfile ] [-HsmId] [-WhatIf] + [-DefaultProfile ] [-HsmId] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -222,6 +222,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value Value of the setting. diff --git a/src/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 b/src/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 index 58551de920d1..1e07d0dbc103 100644 --- a/src/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 +++ b/src/Security/Security.Autorest/exports/New-AzSecurityConnector.ps1 @@ -17,10 +17,10 @@ <# .Synopsis Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. .Description Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. .Example $account = "891376984375" $arnPrefix = "arn:aws:iam::$($account):role" diff --git a/src/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 index f24ff0078579..fa24a3199a3c 100644 --- a/src/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Security/Security.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -3515,10 +3515,10 @@ end { <# .Synopsis Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. .Description Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. .Example $account = "891376984375" $arnPrefix = "arn:aws:iam::$($account):role" @@ -4240,9 +4240,9 @@ end { <# .Synopsis -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. .Description -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Enabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="High"}) Update-AzSecurityConnectorAzureDevOpsOrg -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ActionableRemediation $config @@ -4475,9 +4475,9 @@ end { <# .Synopsis -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. .Description -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Disabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="Low"}) Update-AzSecurityConnectorAzureDevOpsProject -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ProjectName "Build" -ActionableRemediation $config @@ -4722,9 +4722,9 @@ end { <# .Synopsis -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. .Description -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Enabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="Low"} ) Update-AzSecurityConnectorAzureDevOpsRepo -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ProjectName "Build" -RepoName "Build" -ActionableRemediation $config @@ -4981,9 +4981,9 @@ end { <# .Synopsis -Updates a DevOps Configuration. +Update a DevOps Configuration. .Description -Updates a DevOps Configuration. +Update a DevOps Configuration. .Example Update-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -AutoDiscovery Enabled @@ -5214,9 +5214,9 @@ end { <# .Synopsis -Updates a security connector +Update a security connector .Description -Updates a security connector +Update a security connector .Example Update-AzSecurityConnector -ResourceGroupName "securityConnectors-pwsh-tmp" -Name "ado-sdk-pwsh-test03" -Tag @{myTag="v1"} diff --git a/src/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 b/src/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 index 1794115b2c4f..ff198dc02727 100644 --- a/src/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 +++ b/src/Security/Security.Autorest/exports/Update-AzSecurityConnector.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates a security connector +Update a security connector .Description -Updates a security connector +Update a security connector .Example Update-AzSecurityConnector -ResourceGroupName "securityConnectors-pwsh-tmp" -Name "ado-sdk-pwsh-test03" -Tag @{myTag="v1"} diff --git a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 index c9064ac230b4..093c92aceec8 100644 --- a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 +++ b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsOrg.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. .Description -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Enabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="High"}) Update-AzSecurityConnectorAzureDevOpsOrg -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ActionableRemediation $config diff --git a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 index 1fd051e61637..cc4dbf11ede8 100644 --- a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 +++ b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsProject.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. .Description -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Disabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="Low"}) Update-AzSecurityConnectorAzureDevOpsProject -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ProjectName "Build" -ActionableRemediation $config diff --git a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 index 427c94b54c21..95cede6ff642 100644 --- a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 +++ b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorAzureDevOpsRepo.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. .Description -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. .Example $config = New-AzSecurityConnectorActionableRemediationObject -State Enabled -InheritFromParentState Disabled -CategoryConfiguration @( @{category="IaC"; minimumSeverityLevel="Low"} ) Update-AzSecurityConnectorAzureDevOpsRepo -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -OrgName "org1" -ProjectName "Build" -RepoName "Build" -ActionableRemediation $config diff --git a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 index 73ae98bb68f6..3ddbd42e7db5 100644 --- a/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 +++ b/src/Security/Security.Autorest/exports/Update-AzSecurityConnectorDevOpsConfiguration.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates a DevOps Configuration. +Update a DevOps Configuration. .Description -Updates a DevOps Configuration. +Update a DevOps Configuration. .Example Update-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName "securityConnectors-pwsh-tmp" -SecurityConnectorName "ado-sdk-pwsh-test03" -AutoDiscovery Enabled diff --git a/src/Security/Security.Autorest/generated/api/Security.cs b/src/Security/Security.Autorest/generated/api/Security.cs index cce40b3809e2..8377a24af858 100644 --- a/src/Security/Security.Autorest/generated/api/Security.cs +++ b/src/Security/Security.Autorest/generated/api/Security.cs @@ -2098,7 +2098,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2150,7 +2150,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -2212,7 +2212,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// an instance that will receive events. @@ -2272,7 +2272,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2323,7 +2323,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -2372,7 +2372,7 @@ public partial class Security } } - /// Create monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -3737,7 +3737,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -3789,7 +3789,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -3851,7 +3851,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// The Azure DevOps organization resource payload. /// an instance that will receive events. @@ -3911,7 +3911,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -3962,7 +3962,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4011,7 +4011,7 @@ public partial class Security } } - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4376,7 +4376,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4431,7 +4431,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -4496,7 +4496,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// an instance that will receive events. @@ -4559,7 +4559,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4613,7 +4613,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -4665,7 +4665,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -5727,7 +5727,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -5782,7 +5782,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -5847,7 +5847,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// The Azure DevOps project resource payload. /// an instance that will receive events. @@ -5910,7 +5910,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -5964,7 +5964,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6016,7 +6016,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6388,7 +6388,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6446,7 +6446,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -6514,7 +6514,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// an instance that will receive events. @@ -6580,7 +6580,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6637,7 +6637,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -6692,7 +6692,7 @@ public partial class Security } } - /// Create a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -7787,7 +7787,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -7845,7 +7845,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -7913,7 +7913,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// The Azure DevOps repository resource payload. /// an instance that will receive events. @@ -7979,7 +7979,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8036,7 +8036,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8091,7 +8091,7 @@ public partial class Security } } - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8466,7 +8466,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8516,7 +8516,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -8576,7 +8576,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// an instance that will receive events. @@ -8634,7 +8634,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8683,7 +8683,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -8730,7 +8730,7 @@ public partial class Security } } - /// Create a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10018,7 +10018,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10068,7 +10068,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// a delegate that is called when the remote service returns 200 (OK). @@ -10128,7 +10128,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// /// The DevOps configuration resource payload. /// an instance that will receive events. @@ -10186,7 +10186,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10235,7 +10235,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -10282,7 +10282,7 @@ public partial class Security } } - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// Azure subscription ID /// The name of the resource group. The name is case insensitive. /// The security connector name. @@ -14724,8 +14724,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -14777,8 +14777,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// /// The security connector resource @@ -14840,8 +14840,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// /// The security connector resource @@ -14900,8 +14900,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -14952,8 +14952,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -15001,8 +15001,8 @@ public partial class Security } /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Update a security connector. If a security connector is already Updated and a subsequent request is issued for the same + /// security connector id, then it will be Updated. /// /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -16343,7 +16343,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16392,7 +16392,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// /// The security connector resource /// a delegate that is called when the remote service returns 200 (OK). @@ -16451,7 +16451,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// /// The security connector resource /// an instance that will receive events. @@ -16508,7 +16508,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16556,7 +16556,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. @@ -16602,7 +16602,7 @@ public partial class Security } } - /// Updates a security connector + /// Update a security connector /// Azure subscription ID /// The name of the resource group within the user's subscription. The name is case insensitive. /// The security connector name. diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_Get.cs index 3d9765d38828..7a0bb971acde 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_Get.cs @@ -238,11 +238,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_GetViaIdentity.cs index afde86a1d3a9..5982ea05720c 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_GetViaIdentity.cs @@ -182,11 +182,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List.cs index e94a719a8d4b..514ec4c52f7d 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List.cs @@ -197,11 +197,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List1.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List1.cs index 9a4bf53991b8..8b2570fba5d7 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List1.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List1.cs @@ -211,11 +211,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List2.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List2.cs index acc99a4e5b2d..87e3b2db28d5 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List2.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityApiCollection_List2.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrgAvailable_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrgAvailable_List.cs index 8193d626797c..34f6d1a68fb9 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrgAvailable_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrgAvailable_List.cs @@ -225,11 +225,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_Get.cs index 761ff7e0f889..74d23c22b1cb 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_Get.cs @@ -231,11 +231,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_GetViaIdentity.cs index 90d310be4d15..79055aa1d35f 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_List.cs index 3d9ea6ae90ea..e4fe7150dbc1 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsOrg_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_Get.cs index f7e2418bd89b..869ca4a62c85 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_Get.cs @@ -245,11 +245,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_GetViaIdentity.cs index 41e0cfd6059a..0e3b3b670f89 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_List.cs index 9a41c0643afb..d1b317d0ef84 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsProject_List.cs @@ -237,11 +237,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_Get.cs index 1c4b26b49e0a..bb6268f12576 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_Get.cs @@ -259,11 +259,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_GetViaIdentity.cs index fa8b70057c82..25f1b07230f5 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_List.cs index 07e0fa3173af..88f501154ebf 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorAzureDevOpsRepo_List.cs @@ -251,11 +251,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_Get.cs index e56c89a7bb59..2bd27e8c9272 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_Get.cs @@ -217,11 +217,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_GetViaIdentity.cs index 90c4c56f58a5..e9368800c29f 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_List.cs index a85f774e6be4..eca698fbb8d5 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorDevOpsConfiguration_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwnerAvailable_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwnerAvailable_List.cs index c20e39e27a52..9270d0339cac 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwnerAvailable_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwnerAvailable_List.cs @@ -225,11 +225,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_Get.cs index 5e52202e346f..ab54c403f91d 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_Get.cs @@ -231,11 +231,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_GetViaIdentity.cs index 5f4b4365746d..eef85c47849d 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_List.cs index fe6fb5eb7005..32da1cc1c076 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubOwner_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_Get.cs index 104761937a9c..b5267839f0b9 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_Get.cs @@ -245,11 +245,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_GetViaIdentity.cs index 4ed55bdd9c39..9c9542d716f8 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_List.cs index 1fa5be2a1ad5..86fb5ecf5aa3 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitHubRepo_List.cs @@ -237,11 +237,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroupAvailable_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroupAvailable_List.cs index 13ab3b21c4db..d13ec93aaa40 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroupAvailable_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroupAvailable_List.cs @@ -225,11 +225,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_Get.cs index 67f955f84c25..6eaab98d010a 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_Get.cs @@ -231,11 +231,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_GetViaIdentity.cs index c4a10ab22bec..d1177a659c08 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_List.cs index 20c8d55314a3..7d54b3a385eb 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabGroup_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_Get.cs index 0fb5af148c9b..7e6152ddf6ba 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_Get.cs @@ -247,11 +247,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_GetViaIdentity.cs index 044833b6e45a..8f3d21457245 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_GetViaIdentity.cs @@ -180,11 +180,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_List.cs index 5b42ac318920..e42eb536d94b 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabProject_List.cs @@ -239,11 +239,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabSubgroup_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabSubgroup_List.cs index 94993e57b3a3..4e6ddf8f6363 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabSubgroup_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnectorGitLabSubgroup_List.cs @@ -239,11 +239,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_Get.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_Get.cs index 7c997cab8025..db84730e79b8 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_Get.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_Get.cs @@ -220,11 +220,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_GetViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_GetViaIdentity.cs index 0e4b1e1e6064..afa4ba11d835 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_GetViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List.cs index 04fbebfe2ab2..162666e25aff 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List.cs @@ -198,11 +198,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List1.cs b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List1.cs index 7eca1e090074..1e9f29791aff 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List1.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/GetAzSecurityConnector_List1.cs @@ -214,11 +214,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs index 7d4f59b89a71..565ce28a41b1 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_Delete.cs @@ -252,11 +252,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs index e61f7f8af13c..4760c4af0a86 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOffboard_DeleteViaIdentity.cs @@ -196,11 +196,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs index 111c6cb1dc5b..bcfd9d3d618f 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_Azure.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs index d6ef56aff1e9..9e15c3b42dd1 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/InvokeAzSecurityApiCollectionApimOnboard_AzureViaIdentity.cs @@ -216,11 +216,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs index 39f0ddf0b349..6f5fe1337643 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnectorDevOpsConfiguration_CreateExpanded.cs @@ -316,11 +316,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs index 9bff0554eb8c..251f3fbb4de1 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/NewAzSecurityConnector_CreateExpanded.cs @@ -11,15 +11,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using System; /// - /// Create a security connector. If a security connector is already created and a subsequent request is issued for the same - /// security connector id, then it will be updated. + /// Create a security connector. If a security connector is already Created and a subsequent request is issued for the same + /// security connector id, then it will be Created. /// /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzSecurityConnector_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Create a security connector. If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Create a security connector. If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class NewAzSecurityConnector_CreateExpanded : global::System.Management.Automation.PSCmdlet, @@ -333,11 +333,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs index 806d59f7a38e..2d0b985d3a2a 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_Delete.cs @@ -268,11 +268,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs index 8351d823a05b..b4c26102225b 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnectorDevOpsConfiguration_DeleteViaIdentity.cs @@ -228,11 +228,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs index 4c0c50d27161..aebd6f014b31 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_Delete.cs @@ -235,11 +235,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs index 1dd32a66c8f4..eafab595bda9 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/RemoveAzSecurityConnector_DeleteViaIdentity.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs index 6ca214e7dd4a..8917ae5e6362 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsOrg_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates monitored Azure DevOps organization details.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update monitored Azure DevOps organization details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -318,11 +318,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs index bf6bbe361911..4d06894b7634 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates monitored Azure DevOps organization details. + /// Update monitored Azure DevOps organization details. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsOrg))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates monitored Azure DevOps organization details.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update monitored Azure DevOps organization details.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsOrg_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -263,11 +263,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs index ecd957c102e0..62d439098895 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsProject_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a monitored Azure DevOps project resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -346,11 +346,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs index 7de8b8cecab0..779e61336c91 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a monitored Azure DevOps project resource. + /// Update a monitored Azure DevOps project resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsProject))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a monitored Azure DevOps project resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps project resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsProject_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs index 29edc1f3ebce..f017b18440b8 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsRepo_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a monitored Azure DevOps repository resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps repository resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -370,11 +370,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs index 234e2087bdca..20c78a0d5bdb 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a monitored Azure DevOps repository resource. + /// Update a monitored Azure DevOps repository resource. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IAzureDevOpsRepository))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a monitored Azure DevOps repository resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a monitored Azure DevOps repository resource.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorAzureDevOpsRepo_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -285,11 +285,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs index aaedcaf44b09..109fb8828a8e 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorDevOpsConfiguration_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a DevOps Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a DevOps Configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -316,11 +316,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs index 43bb08eebbbd..abb53a0b7878 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a DevOps Configuration. + /// Update a DevOps Configuration. /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.IDevOpsConfiguration))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a DevOps Configuration.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a DevOps Configuration.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", ApiVersion = "2023-09-01-preview")] public partial class UpdateAzSecurityConnectorDevOpsConfiguration_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs index e1953864431d..f9994aa6db01 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a security connector + /// Update a security connector /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnector_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a security connector")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a security connector")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzSecurityConnector_UpdateExpanded : global::System.Management.Automation.PSCmdlet, @@ -318,11 +318,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs index e30fa1dc7538..680d9930127e 100644 --- a/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs +++ b/src/Security/Security.Autorest/generated/cmdlets/UpdateAzSecurityConnector_UpdateViaIdentityExpanded.cs @@ -10,13 +10,13 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Security.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.Security.Runtime.Cmdlets; using System; - /// Updates a security connector + /// Update a security connector /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzSecurityConnector_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Security.Models.ISecurityConnector))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Updates a security connector")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Description(@"Update a security connector")] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Security.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}", ApiVersion = "2023-10-01-preview")] public partial class UpdateAzSecurityConnector_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, @@ -276,11 +276,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Security.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/Security/Security.Autorest/help/Az.Security.md b/src/Security/Security.Autorest/help/Az.Security.md index af4d03d52727..e6f0839224af 100644 --- a/src/Security/Security.Autorest/help/Az.Security.md +++ b/src/Security/Security.Autorest/help/Az.Security.md @@ -76,7 +76,7 @@ Create an in-memory object for AzureDevOpsScopeEnvironment. ### [New-AzSecurityConnector](New-AzSecurityConnector.md) Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ### [New-AzSecurityConnectorActionableRemediationObject](New-AzSecurityConnectorActionableRemediationObject.md) Create an in-memory object for ActionableRemediation. @@ -148,17 +148,17 @@ Deletes a security connector. Deletes a DevOps Connector. ### [Update-AzSecurityConnector](Update-AzSecurityConnector.md) -Updates a security connector +Update a security connector ### [Update-AzSecurityConnectorAzureDevOpsOrg](Update-AzSecurityConnectorAzureDevOpsOrg.md) -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. ### [Update-AzSecurityConnectorAzureDevOpsProject](Update-AzSecurityConnectorAzureDevOpsProject.md) -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ### [Update-AzSecurityConnectorAzureDevOpsRepo](Update-AzSecurityConnectorAzureDevOpsRepo.md) -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ### [Update-AzSecurityConnectorDevOpsConfiguration](Update-AzSecurityConnectorDevOpsConfiguration.md) -Updates a DevOps Configuration. +Update a DevOps Configuration. diff --git a/src/Security/Security.Autorest/help/New-AzSecurityConnector.md b/src/Security/Security.Autorest/help/New-AzSecurityConnector.md index 9ede52ce846f..cb2c510aa1a6 100644 --- a/src/Security/Security.Autorest/help/New-AzSecurityConnector.md +++ b/src/Security/Security.Autorest/help/New-AzSecurityConnector.md @@ -9,7 +9,7 @@ schema: 2.0.0 ## SYNOPSIS Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ## SYNTAX @@ -22,7 +22,7 @@ New-AzSecurityConnector -Name -ResourceGroupName [-Subscriptio ## DESCRIPTION Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ## EXAMPLES diff --git a/src/Security/Security.Autorest/help/Update-AzSecurityConnector.md b/src/Security/Security.Autorest/help/Update-AzSecurityConnector.md index 221bc35cf621..2aa1d1f531b1 100644 --- a/src/Security/Security.Autorest/help/Update-AzSecurityConnector.md +++ b/src/Security/Security.Autorest/help/Update-AzSecurityConnector.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnector ## SYNOPSIS -Updates a security connector +Update a security connector ## SYNTAX @@ -29,7 +29,7 @@ Update-AzSecurityConnector -InputObject [-EnvironmentData ``` ## DESCRIPTION -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. ## EXAMPLES diff --git a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsProject.md b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsProject.md index e2d7085c87e6..dfcc2e77e561 100644 --- a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsProject.md +++ b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsProject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorAzureDevOpsProject ## SYNOPSIS -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ## SYNTAX @@ -28,7 +28,7 @@ Update-AzSecurityConnectorAzureDevOpsProject -InputObject ``` ## DESCRIPTION -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ## EXAMPLES diff --git a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsRepo.md b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsRepo.md index 62d0a37b7a22..c45c351034f5 100644 --- a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsRepo.md +++ b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorAzureDevOpsRepo.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorAzureDevOpsRepo ## SYNOPSIS -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ## SYNTAX @@ -28,7 +28,7 @@ Update-AzSecurityConnectorAzureDevOpsRepo -InputObject ``` ## DESCRIPTION -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ## EXAMPLES diff --git a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorDevOpsConfiguration.md b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorDevOpsConfiguration.md index 43b08d1bfef8..f0ed7b2f0f51 100644 --- a/src/Security/Security.Autorest/help/Update-AzSecurityConnectorDevOpsConfiguration.md +++ b/src/Security/Security.Autorest/help/Update-AzSecurityConnectorDevOpsConfiguration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorDevOpsConfiguration ## SYNOPSIS -Updates a DevOps Configuration. +Update a DevOps Configuration. ## SYNTAX @@ -28,7 +28,7 @@ Update-AzSecurityConnectorDevOpsConfiguration -InputObject [ ``` ## DESCRIPTION -Updates a DevOps Configuration. +Update a DevOps Configuration. ## EXAMPLES diff --git a/src/Security/Security/Az.Security.psd1 b/src/Security/Security/Az.Security.psd1 index 831198caa529..8181b32ebcd5 100644 --- a/src/Security/Security/Az.Security.psd1 +++ b/src/Security/Security/Az.Security.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 03/27/2024 +# Generated on: 4/22/2024 # @{ @@ -60,13 +60,13 @@ RequiredAssemblies = 'Microsoft.Azure.PowerShell.Security.Management.Sdk.dll', 'Security.Autorest/bin/Az.Security.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'Security.Autorest/Az.Security.format.ps1xml' +FormatsToProcess = 'Security.Autorest\Az.Security.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Security.dll', @@ -206,7 +206,8 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Provider','Security','ASC','SecurityCenter','AzureSecurityCenter' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Provider', 'Security', 'ASC', + 'SecurityCenter', 'AzureSecurityCenter' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -231,7 +232,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Security/Security/ChangeLog.md b/src/Security/Security/ChangeLog.md index cbb47a64e808..6fad014334f8 100644 --- a/src/Security/Security/ChangeLog.md +++ b/src/Security/Security/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 1.6.1 * Introduced secrets detection feature to safeguard sensitive data. diff --git a/src/Security/Security/help/Add-AzSecurityAdaptiveNetworkHardening.md b/src/Security/Security/help/Add-AzSecurityAdaptiveNetworkHardening.md index a7b1cd2edc0a..f7771f47ca69 100644 --- a/src/Security/Security/help/Add-AzSecurityAdaptiveNetworkHardening.md +++ b/src/Security/Security/help/Add-AzSecurityAdaptiveNetworkHardening.md @@ -17,7 +17,7 @@ Add-AzSecurityAdaptiveNetworkHardening -AdaptiveNetworkHardeningResourceName -ResourceName -ResourceNamespace -ResourceType -SubscriptionId -Rule -NetworkSecurityGroup [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -100,6 +100,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Add-AzSecuritySqlVulnerabilityAssessmentBaseline.md b/src/Security/Security/help/Add-AzSecuritySqlVulnerabilityAssessmentBaseline.md index bef25c6fb868..7a16ed2661c2 100644 --- a/src/Security/Security/help/Add-AzSecuritySqlVulnerabilityAssessmentBaseline.md +++ b/src/Security/Security/help/Add-AzSecuritySqlVulnerabilityAssessmentBaseline.md @@ -16,7 +16,7 @@ Add SQL vulnerability assessment baseline. ``` Add-AzSecuritySqlVulnerabilityAssessmentBaseline -RuleId [-Baseline ] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### OnPremMachinesWithBaselineObject @@ -24,14 +24,14 @@ Add-AzSecuritySqlVulnerabilityAssessmentBaseline -RuleId [-Baseline [-Baseline ] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId -WorkspaceResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObjectWithResourceId ``` Add-AzSecuritySqlVulnerabilityAssessmentBaseline -InputObject -ResourceId -WorkspaceId -Server -Database - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -40,7 +40,7 @@ Add-AzSecuritySqlVulnerabilityAssessmentBaseline -InputObject -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId -WorkspaceResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -203,6 +203,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. Supported resources are: diff --git a/src/Security/Security/help/Az.Security.md b/src/Security/Security/help/Az.Security.md index 84aaefd21cfc..c6a065ddaac4 100644 --- a/src/Security/Security/help/Az.Security.md +++ b/src/Security/Security/help/Az.Security.md @@ -253,7 +253,7 @@ Create an in-memory object for AzureDevOpsScopeEnvironment. ### [New-AzSecurityConnector](New-AzSecurityConnector.md) Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ### [New-AzSecurityConnectorActionableRemediationObject](New-AzSecurityConnectorActionableRemediationObject.md) Create an in-memory object for ActionableRemediation. @@ -406,17 +406,17 @@ Invokes a temporary network access request. Update one or more of the following properties in IoT security solution: tags, recommendation configuration, user defined resources ### [Update-AzSecurityConnector](Update-AzSecurityConnector.md) -Updates a security connector +Update a security connector ### [Update-AzSecurityConnectorAzureDevOpsOrg](Update-AzSecurityConnectorAzureDevOpsOrg.md) -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. ### [Update-AzSecurityConnectorAzureDevOpsProject](Update-AzSecurityConnectorAzureDevOpsProject.md) -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ### [Update-AzSecurityConnectorAzureDevOpsRepo](Update-AzSecurityConnectorAzureDevOpsRepo.md) -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ### [Update-AzSecurityConnectorDevOpsConfiguration](Update-AzSecurityConnectorDevOpsConfiguration.md) -Updates a DevOps Configuration. +Update a DevOps Configuration. diff --git a/src/Security/Security/help/Confirm-AzSecurityAutomation.md b/src/Security/Security/help/Confirm-AzSecurityAutomation.md index 64eca5e1e3ba..161367a0008a 100644 --- a/src/Security/Security/help/Confirm-AzSecurityAutomation.md +++ b/src/Security/Security/help/Confirm-AzSecurityAutomation.md @@ -17,7 +17,7 @@ Validates the security automation model before create or update. Any validation Confirm-AzSecurityAutomation -ResourceGroupName -Name -Location [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] -Scope -Source -Action - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId @@ -25,7 +25,7 @@ Confirm-AzSecurityAutomation -ResourceGroupName -Name -Locatio Confirm-AzSecurityAutomation -ResourceId -Location [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] -Scope -Source -Action - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### InputObject @@ -33,7 +33,7 @@ Confirm-AzSecurityAutomation -ResourceId -Location [-Etag ] [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] [-Scope ] [-Source ] -Action -InputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -182,6 +182,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Disable-AzIotSecurityAnalyticsAggregatedAlert.md b/src/Security/Security/help/Disable-AzIotSecurityAnalyticsAggregatedAlert.md index f3f6eb96f6c2..97d146d4cefb 100644 --- a/src/Security/Security/help/Disable-AzIotSecurityAnalyticsAggregatedAlert.md +++ b/src/Security/Security/help/Disable-AzIotSecurityAnalyticsAggregatedAlert.md @@ -15,21 +15,21 @@ Dismiss Iot aggregated alert ### SolutionLevelResource (Default) ``` Disable-AzIotSecurityAnalyticsAggregatedAlert -ResourceGroupName -SolutionName -Name - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Disable-AzIotSecurityAnalyticsAggregatedAlert -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Disable-AzIotSecurityAnalyticsAggregatedAlert -ResourceId [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -115,6 +115,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Disable-AzSecurityAdvancedThreatProtection.md b/src/Security/Security/help/Disable-AzSecurityAdvancedThreatProtection.md index 553b045eec74..6493bd6eb841 100644 --- a/src/Security/Security/help/Disable-AzSecurityAdvancedThreatProtection.md +++ b/src/Security/Security/help/Disable-AzSecurityAdvancedThreatProtection.md @@ -14,7 +14,7 @@ Disables the advanced threat protection policy for a storage / cosmosDB account. ``` Disable-AzSecurityAdvancedThreatProtection -ResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Enable-AzSecurityAdvancedThreatProtection.md b/src/Security/Security/help/Enable-AzSecurityAdvancedThreatProtection.md index abd393a62c1f..e982304e09cb 100644 --- a/src/Security/Security/help/Enable-AzSecurityAdvancedThreatProtection.md +++ b/src/Security/Security/help/Enable-AzSecurityAdvancedThreatProtection.md @@ -14,7 +14,7 @@ Enables the advanced threat protection policy for a storage / cosmosDB account. ``` Enable-AzSecurityAdvancedThreatProtection -ResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzAlertsSuppressionRule.md b/src/Security/Security/help/Get-AzAlertsSuppressionRule.md index f853c22f249f..2c3a1cc7f24e 100644 --- a/src/Security/Security/help/Get-AzAlertsSuppressionRule.md +++ b/src/Security/Security/help/Get-AzAlertsSuppressionRule.md @@ -14,20 +14,20 @@ Gets alerts suppression rules. ### SubscriptionScope (Default) ``` -Get-AzAlertsSuppressionRule [-DefaultProfile ] +Get-AzAlertsSuppressionRule [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzAlertsSuppressionRule -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzAlertsSuppressionRule -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzAllowedConnection.md b/src/Security/Security/help/Get-AzAllowedConnection.md index af63266e2c69..ebd5aeacd52f 100644 --- a/src/Security/Security/help/Get-AzAllowedConnection.md +++ b/src/Security/Security/help/Get-AzAllowedConnection.md @@ -14,20 +14,20 @@ Used to display allowed traffic between resources for the subscription ### SubscriptionScope (Default) ``` -Get-AzAllowedConnection [-DefaultProfile ] +Get-AzAllowedConnection [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzAllowedConnection -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzAllowedConnection -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -110,6 +110,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzDeviceSecurityGroup.md b/src/Security/Security/help/Get-AzDeviceSecurityGroup.md index 07f331762579..24f0de88ccbb 100644 --- a/src/Security/Security/help/Get-AzDeviceSecurityGroup.md +++ b/src/Security/Security/help/Get-AzDeviceSecurityGroup.md @@ -15,13 +15,13 @@ Get device security group (IoT Hub security) ### ResourceIdScope (Default) ``` Get-AzDeviceSecurityGroup -HubResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceIdLevelResource ``` Get-AzDeviceSecurityGroup -HubResourceId -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -138,6 +138,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Get-AzDiscoveredSecuritySolution.md b/src/Security/Security/help/Get-AzDiscoveredSecuritySolution.md index 641597566691..33b1545552c6 100644 --- a/src/Security/Security/help/Get-AzDiscoveredSecuritySolution.md +++ b/src/Security/Security/help/Get-AzDiscoveredSecuritySolution.md @@ -15,19 +15,19 @@ Gets security solutions that were discovered by Azure Security Center ### SubscriptionScope (Default) ``` Get-AzDiscoveredSecuritySolution [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzDiscoveredSecuritySolution -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzDiscoveredSecuritySolution -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -116,6 +116,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzExternalSecuritySolution.md b/src/Security/Security/help/Get-AzExternalSecuritySolution.md index 9ef97281db4d..0a57de60fe8d 100644 --- a/src/Security/Security/help/Get-AzExternalSecuritySolution.md +++ b/src/Security/Security/help/Get-AzExternalSecuritySolution.md @@ -14,26 +14,26 @@ Get external security solution ### SubscriptionScope (Default) ``` -Get-AzExternalSecuritySolution [-DefaultProfile ] +Get-AzExternalSecuritySolution [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzExternalSecuritySolution -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzExternalSecuritySolution -Location [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzExternalSecuritySolution -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -158,6 +158,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzIotSecurityAnalytics.md b/src/Security/Security/help/Get-AzIotSecurityAnalytics.md index 2a842843b666..42ff33cac150 100644 --- a/src/Security/Security/help/Get-AzIotSecurityAnalytics.md +++ b/src/Security/Security/help/Get-AzIotSecurityAnalytics.md @@ -14,7 +14,7 @@ Get IoT security analytics ``` Get-AzIotSecurityAnalytics -ResourceGroupName -SolutionName [-Default] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -141,6 +141,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedAlert.md b/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedAlert.md index 755b920501a7..664192bba40b 100644 --- a/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedAlert.md +++ b/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedAlert.md @@ -15,13 +15,13 @@ Get IoT security aggregated alert ### SolutionScope (Default) ``` Get-AzIotSecurityAnalyticsAggregatedAlert -ResourceGroupName -SolutionName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SolutionLevelResource ``` Get-AzIotSecurityAnalyticsAggregatedAlert -ResourceGroupName -SolutionName -Name - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -110,6 +110,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedRecommendation.md b/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedRecommendation.md index 59e91ac7ecca..6a0402c01510 100644 --- a/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedRecommendation.md +++ b/src/Security/Security/help/Get-AzIotSecurityAnalyticsAggregatedRecommendation.md @@ -15,13 +15,13 @@ Get IoT security aggregated recommendation ### SolutionScope (Default) ``` Get-AzIotSecurityAnalyticsAggregatedRecommendation -ResourceGroupName -SolutionName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SolutionLevelResource ``` Get-AzIotSecurityAnalyticsAggregatedRecommendation -ResourceGroupName -SolutionName - -Name [-DefaultProfile ] + -Name [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -97,6 +97,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzIotSecuritySolution.md b/src/Security/Security/help/Get-AzIotSecuritySolution.md index a8b1915c8474..cb62e2b52a4a 100644 --- a/src/Security/Security/help/Get-AzIotSecuritySolution.md +++ b/src/Security/Security/help/Get-AzIotSecuritySolution.md @@ -14,26 +14,26 @@ Get IoT security solution ### SubscriptionScope (Default) ``` -Get-AzIotSecuritySolution [-DefaultProfile ] +Get-AzIotSecuritySolution [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupScope ``` Get-AzIotSecuritySolution -ResourceGroupName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzIotSecuritySolution -ResourceGroupName -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzIotSecuritySolution -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -124,6 +124,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzJitNetworkAccessPolicy.md b/src/Security/Security/help/Get-AzJitNetworkAccessPolicy.md index 270621f05b5e..d0d71e83fa38 100644 --- a/src/Security/Security/help/Get-AzJitNetworkAccessPolicy.md +++ b/src/Security/Security/help/Get-AzJitNetworkAccessPolicy.md @@ -14,26 +14,26 @@ Gets the JIT network access policies ### SubscriptionScope (Default) ``` -Get-AzJitNetworkAccessPolicy [-DefaultProfile ] +Get-AzJitNetworkAccessPolicy [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupScope ``` Get-AzJitNetworkAccessPolicy -ResourceGroupName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzJitNetworkAccessPolicy -ResourceGroupName -Location -Name - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzJitNetworkAccessPolicy -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -152,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzRegulatoryComplianceAssessment.md b/src/Security/Security/help/Get-AzRegulatoryComplianceAssessment.md index 7e79c23e94c0..de1e8f20c798 100644 --- a/src/Security/Security/help/Get-AzRegulatoryComplianceAssessment.md +++ b/src/Security/Security/help/Get-AzRegulatoryComplianceAssessment.md @@ -15,13 +15,13 @@ Gets regulatory compliance assessments ### SubscriptionLevelResource (Default) ``` Get-AzRegulatoryComplianceAssessment [-Name ] -StandardName -ControlName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzRegulatoryComplianceAssessment -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -231,6 +231,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzRegulatoryComplianceControl.md b/src/Security/Security/help/Get-AzRegulatoryComplianceControl.md index cf8d29f5659f..0f88117b3d64 100644 --- a/src/Security/Security/help/Get-AzRegulatoryComplianceControl.md +++ b/src/Security/Security/help/Get-AzRegulatoryComplianceControl.md @@ -15,13 +15,13 @@ Gets regulatory compliance controls ### SubscriptionLevelResource (Default) ``` Get-AzRegulatoryComplianceControl [-Name ] -StandardName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzRegulatoryComplianceControl -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -159,6 +159,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzRegulatoryComplianceStandard.md b/src/Security/Security/help/Get-AzRegulatoryComplianceStandard.md index 8e7f7f2f2286..30a3bc477da8 100644 --- a/src/Security/Security/help/Get-AzRegulatoryComplianceStandard.md +++ b/src/Security/Security/help/Get-AzRegulatoryComplianceStandard.md @@ -15,19 +15,19 @@ Gets regulatory compliance standards ### SubscriptionScope (Default) ``` Get-AzRegulatoryComplianceStandard [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzRegulatoryComplianceStandard -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzRegulatoryComplianceStandard -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -154,6 +154,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControl.md b/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControl.md index 0a6dcc6fed1e..f36155a5342f 100644 --- a/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControl.md +++ b/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControl.md @@ -14,7 +14,7 @@ Gets a list of application control VM/server groups for the subscription. ``` Get-AzSecurityAdaptiveApplicationControl [-SubscriptionId ] [-IncludePathRecommendation ] - [-Summary ] [-DefaultProfile ] + [-Summary ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -82,6 +82,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure subscription ID. diff --git a/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControlGroup.md b/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControlGroup.md index 364e80bc69b9..6f0b516c6867 100644 --- a/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControlGroup.md +++ b/src/Security/Security/help/Get-AzSecurityAdaptiveApplicationControlGroup.md @@ -14,7 +14,7 @@ Gets an application control VM/server group. ``` Get-AzSecurityAdaptiveApplicationControlGroup -GroupName -AscLocation - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -85,6 +85,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId Azure subscription ID. diff --git a/src/Security/Security/help/Get-AzSecurityAdaptiveNetworkHardening.md b/src/Security/Security/help/Get-AzSecurityAdaptiveNetworkHardening.md index 961fe569893c..e036abe3024a 100644 --- a/src/Security/Security/help/Get-AzSecurityAdaptiveNetworkHardening.md +++ b/src/Security/Security/help/Get-AzSecurityAdaptiveNetworkHardening.md @@ -15,7 +15,7 @@ Gets a list of Adaptive Network Hardenings resources in scope of an extended res ``` Get-AzSecurityAdaptiveNetworkHardening [-AdaptiveNetworkHardeningResourceName ] -ResourceGroupName -ResourceName -ResourceNamespace -ResourceType - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -82,6 +82,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecurityAdvancedThreatProtection.md b/src/Security/Security/help/Get-AzSecurityAdvancedThreatProtection.md index 4418b0f6883d..9c80e5ede1ff 100644 --- a/src/Security/Security/help/Get-AzSecurityAdvancedThreatProtection.md +++ b/src/Security/Security/help/Get-AzSecurityAdvancedThreatProtection.md @@ -14,7 +14,7 @@ Gets the advanced threat protection policy for a storage / cosmosDB account. ``` Get-AzSecurityAdvancedThreatProtection -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecurityAlert.md b/src/Security/Security/help/Get-AzSecurityAlert.md index 010e62b67603..df4cef41983d 100644 --- a/src/Security/Security/help/Get-AzSecurityAlert.md +++ b/src/Security/Security/help/Get-AzSecurityAlert.md @@ -14,32 +14,32 @@ Gets security alerts that were detected by Azure Security Center ### SubscriptionScope (Default) ``` -Get-AzSecurityAlert [-DefaultProfile ] +Get-AzSecurityAlert [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupScope ``` Get-AzSecurityAlert -ResourceGroupName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzSecurityAlert -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityAlert -Name -Location [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityAlert -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -401,6 +401,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecurityApiCollection.md b/src/Security/Security/help/Get-AzSecurityApiCollection.md index 7e4d91083372..e5bd1017d46a 100644 --- a/src/Security/Security/help/Get-AzSecurityApiCollection.md +++ b/src/Security/Security/help/Get-AzSecurityApiCollection.md @@ -16,32 +16,32 @@ If an Azure API Management API is onboarded to Microsoft Defender for APIs, the ### List (Default) ``` Get-AzSecurityApiCollection [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityApiCollection -ApiId -ResourceGroupName -ServiceName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### List2 ``` Get-AzSecurityApiCollection -ResourceGroupName -ServiceName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzSecurityApiCollection -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityApiCollection -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -148,6 +148,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityAssessment.md b/src/Security/Security/help/Get-AzSecurityAssessment.md index b94d0c5ebb76..c7f157c73eac 100644 --- a/src/Security/Security/help/Get-AzSecurityAssessment.md +++ b/src/Security/Security/help/Get-AzSecurityAssessment.md @@ -14,26 +14,26 @@ Gets security assessments and their results on a subscription ### SubscriptionScope (Default) ``` -Get-AzSecurityAssessment [-DefaultProfile ] +Get-AzSecurityAssessment [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityAssessment -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceIdScope ``` Get-AzSecurityAssessment -Name -AssessedResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityAssessment -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -107,6 +107,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecurityAssessmentMetadata.md b/src/Security/Security/help/Get-AzSecurityAssessmentMetadata.md index b2fd025d76db..f98953078b22 100644 --- a/src/Security/Security/help/Get-AzSecurityAssessmentMetadata.md +++ b/src/Security/Security/help/Get-AzSecurityAssessmentMetadata.md @@ -15,19 +15,19 @@ Gets security assessments types and metadta in a subscription. ### SubscriptionScope (Default) ``` Get-AzSecurityAssessmentMetadata [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityAssessmentMetadata -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityAssessmentMetadata -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -74,6 +74,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecurityAutoProvisioningSetting.md b/src/Security/Security/help/Get-AzSecurityAutoProvisioningSetting.md index f2cbe8446af9..a4630ac48801 100644 --- a/src/Security/Security/help/Get-AzSecurityAutoProvisioningSetting.md +++ b/src/Security/Security/help/Get-AzSecurityAutoProvisioningSetting.md @@ -15,19 +15,19 @@ Gets the security automatic provisioning settings ### SubscriptionScope (Default) ``` Get-AzSecurityAutoProvisioningSetting [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityAutoProvisioningSetting -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityAutoProvisioningSetting -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSecurityAutomation.md b/src/Security/Security/help/Get-AzSecurityAutomation.md index 6cdcfe4608c0..f1dcbbf42dc2 100644 --- a/src/Security/Security/help/Get-AzSecurityAutomation.md +++ b/src/Security/Security/help/Get-AzSecurityAutomation.md @@ -14,26 +14,26 @@ Gets security automations ### SubscriptionScope (Default) ``` -Get-AzSecurityAutomation [-DefaultProfile ] +Get-AzSecurityAutomation [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupScope ``` Get-AzSecurityAutomation -ResourceGroupName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzSecurityAutomation -ResourceGroupName -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityAutomation -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -80,6 +80,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecurityCompliance.md b/src/Security/Security/help/Get-AzSecurityCompliance.md index f81c1e66cbd9..a095662f9e1e 100644 --- a/src/Security/Security/help/Get-AzSecurityCompliance.md +++ b/src/Security/Security/help/Get-AzSecurityCompliance.md @@ -14,20 +14,20 @@ Get the security compliance of a subscription over time ### SubscriptionScope (Default) ``` -Get-AzSecurityCompliance [-DefaultProfile ] +Get-AzSecurityCompliance [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityCompliance -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityCompliance -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -176,6 +176,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSecurityConnector.md b/src/Security/Security/help/Get-AzSecurityConnector.md index 1dd0b0e4d628..b46357a6d59b 100644 --- a/src/Security/Security/help/Get-AzSecurityConnector.md +++ b/src/Security/Security/help/Get-AzSecurityConnector.md @@ -15,25 +15,25 @@ Retrieves details of a specific security connector ### List (Default) ``` Get-AzSecurityConnector [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityConnector -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List1 ``` Get-AzSecurityConnector -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnector -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -135,6 +135,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrg.md b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrg.md index 0caa2d77b32c..f78533108acd 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrg.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrg.md @@ -15,7 +15,7 @@ Returns a monitored Azure DevOps organization resource. ### List (Default) ``` Get-AzSecurityConnectorAzureDevOpsOrg -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,13 +23,13 @@ Get-AzSecurityConnectorAzureDevOpsOrg -ResourceGroupName -SecurityConne ``` Get-AzSecurityConnectorAzureDevOpsOrg -OrgName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorAzureDevOpsOrg -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -133,6 +133,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.md b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.md index c5b7928853e0..7d0e4bfe4ca9 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsOrgAvailable.md @@ -14,7 +14,7 @@ Returns a list of all Azure DevOps organizations accessible by the user token co ``` Get-AzSecurityConnectorAzureDevOpsOrgAvailable -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -77,6 +77,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsProject.md b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsProject.md index 678f9aa07563..128b1122dcaf 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsProject.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsProject.md @@ -16,20 +16,20 @@ Returns a monitored Azure DevOps project resource. ``` Get-AzSecurityConnectorAzureDevOpsProject -OrgName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityConnectorAzureDevOpsProject -OrgName -ProjectName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorAzureDevOpsProject -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -136,6 +136,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The project name. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsRepo.md b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsRepo.md index bc0e8e256e99..e8742e26ebba 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsRepo.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorAzureDevOpsRepo.md @@ -16,20 +16,20 @@ Returns a monitored Azure DevOps repository resource. ``` Get-AzSecurityConnectorAzureDevOpsRepo -OrgName -ProjectName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityConnectorAzureDevOpsRepo -OrgName -ProjectName -RepoName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorAzureDevOpsRepo -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -140,6 +140,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The project name. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorDevOpsConfiguration.md b/src/Security/Security/help/Get-AzSecurityConnectorDevOpsConfiguration.md index be4952bc21b4..4606de8183d1 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorDevOpsConfiguration.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorDevOpsConfiguration.md @@ -15,21 +15,21 @@ Gets a DevOps Configuration. ### Get (Default) ``` Get-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### List ``` Get-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorDevOpsConfiguration -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -103,6 +103,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwner.md b/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwner.md index 47d318930c07..5df0ad51b4e2 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwner.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwner.md @@ -15,7 +15,7 @@ Returns a monitored GitHub owner. ### List (Default) ``` Get-AzSecurityConnectorGitHubOwner -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,13 +23,13 @@ Get-AzSecurityConnectorGitHubOwner -ResourceGroupName -SecurityConnecto ``` Get-AzSecurityConnectorGitHubOwner -OwnerName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorGitHubOwner -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -121,6 +121,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwnerAvailable.md b/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwnerAvailable.md index 30796936a55a..8914ff22ff5b 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwnerAvailable.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitHubOwnerAvailable.md @@ -14,7 +14,7 @@ Returns a list of all GitHub owners accessible by the user token consumed by the ``` Get-AzSecurityConnectorGitHubOwnerAvailable -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -65,6 +65,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitHubRepo.md b/src/Security/Security/help/Get-AzSecurityConnectorGitHubRepo.md index 0bcd99511a0f..72cf47f31973 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitHubRepo.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitHubRepo.md @@ -16,20 +16,20 @@ Returns a monitored GitHub repository. ``` Get-AzSecurityConnectorGitHubRepo -OwnerName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityConnectorGitHubRepo -OwnerName -RepoName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorGitHubRepo -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -124,6 +124,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RepoName The repository name. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroup.md b/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroup.md index 849a86e4a931..664ff5420e04 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroup.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroup.md @@ -15,7 +15,7 @@ Returns a monitored GitLab Group resource for a given fully-qualified name. ### List (Default) ``` Get-AzSecurityConnectorGitLabGroup -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -23,13 +23,13 @@ Get-AzSecurityConnectorGitLabGroup -ResourceGroupName -SecurityConnecto ``` Get-AzSecurityConnectorGitLabGroup -GroupFqName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorGitLabGroup -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -122,6 +122,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroupAvailable.md b/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroupAvailable.md index 33d0ffa80ff5..514b2a34bcf9 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroupAvailable.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitLabGroupAvailable.md @@ -14,7 +14,7 @@ Returns a list of all GitLab groups accessible by the user token consumed by the ``` Get-AzSecurityConnectorGitLabGroupAvailable -ResourceGroupName -SecurityConnectorName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitLabProject.md b/src/Security/Security/help/Get-AzSecurityConnectorGitLabProject.md index b1d50d9cdc34..4ede59f8d6e4 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitLabProject.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitLabProject.md @@ -16,20 +16,20 @@ Returns a monitored GitLab Project resource for a given fully-qualified group na ``` Get-AzSecurityConnectorGitLabProject -GroupFqName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzSecurityConnectorGitLabProject -GroupFqName -ProjectName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzSecurityConnectorGitLabProject -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -124,6 +124,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The project name. diff --git a/src/Security/Security/help/Get-AzSecurityConnectorGitLabSubgroup.md b/src/Security/Security/help/Get-AzSecurityConnectorGitLabSubgroup.md index afcf8be41761..0f9b43b3f977 100644 --- a/src/Security/Security/help/Get-AzSecurityConnectorGitLabSubgroup.md +++ b/src/Security/Security/help/Get-AzSecurityConnectorGitLabSubgroup.md @@ -15,7 +15,7 @@ Gets nested subgroups of given GitLab Group which are onboarded to the connector ``` Get-AzSecurityConnectorGitLabSubgroup -GroupFqName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Get-AzSecurityContact.md b/src/Security/Security/help/Get-AzSecurityContact.md index d6ae0d8473cd..5b8793fa1a93 100644 --- a/src/Security/Security/help/Get-AzSecurityContact.md +++ b/src/Security/Security/help/Get-AzSecurityContact.md @@ -14,20 +14,20 @@ Gets security contacts that were configured on this subscription ### SubscriptionScope (Default) ``` -Get-AzSecurityContact [-DefaultProfile ] +Get-AzSecurityContact [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityContact -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityContact -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSecurityLocation.md b/src/Security/Security/help/Get-AzSecurityLocation.md index 283e8f1eed58..d6fa48c4fb7c 100644 --- a/src/Security/Security/help/Get-AzSecurityLocation.md +++ b/src/Security/Security/help/Get-AzSecurityLocation.md @@ -14,20 +14,20 @@ Gets the location where Azure Security Center will automatically save data for t ### SubscriptionScope (Default) ``` -Get-AzSecurityLocation [-DefaultProfile ] +Get-AzSecurityLocation [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityLocation -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityLocation -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSecurityPricing.md b/src/Security/Security/help/Get-AzSecurityPricing.md index 1479b2cf4ae7..d391e1ce86b9 100644 --- a/src/Security/Security/help/Get-AzSecurityPricing.md +++ b/src/Security/Security/help/Get-AzSecurityPricing.md @@ -15,20 +15,20 @@ Gets the Azure Defender plans for a subscription in Azure Security Center. ### SubscriptionScope (Default) ``` -Get-AzSecurityPricing [-DefaultProfile ] +Get-AzSecurityPricing [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityPricing -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityPricing -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -125,6 +125,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSecuritySecureScore.md b/src/Security/Security/help/Get-AzSecuritySecureScore.md index 33de5aa83d6c..8c65609683d0 100644 --- a/src/Security/Security/help/Get-AzSecuritySecureScore.md +++ b/src/Security/Security/help/Get-AzSecuritySecureScore.md @@ -14,14 +14,14 @@ Gets security secure scores and their results on a subscription ### SubscriptionScope (Default) ``` -Get-AzSecuritySecureScore [-DefaultProfile ] +Get-AzSecuritySecureScore [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySecureScore -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -79,6 +79,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Get-AzSecuritySecureScoreControl.md b/src/Security/Security/help/Get-AzSecuritySecureScoreControl.md index 3d07e92ae9a0..fafc0978299a 100644 --- a/src/Security/Security/help/Get-AzSecuritySecureScoreControl.md +++ b/src/Security/Security/help/Get-AzSecuritySecureScoreControl.md @@ -15,13 +15,13 @@ Gets security secure score controls and their results on a subscription ### SubscriptionScope (Default) ``` Get-AzSecuritySecureScoreControl [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySecureScoreControl -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Get-AzSecuritySecureScoreControlDefinition.md b/src/Security/Security/help/Get-AzSecuritySecureScoreControlDefinition.md index 6f342a2bda7f..a6c0f48d6dff 100644 --- a/src/Security/Security/help/Get-AzSecuritySecureScoreControlDefinition.md +++ b/src/Security/Security/help/Get-AzSecuritySecureScoreControlDefinition.md @@ -15,13 +15,13 @@ Gets security secure score control definitions on a subscription ### SubscriptionScope (Default) ``` Get-AzSecuritySecureScoreControlDefinition [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySecureScoreControlDefinition -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -81,6 +81,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Get-AzSecuritySetting.md b/src/Security/Security/help/Get-AzSecuritySetting.md index eba83a1197ff..4b8812b5f6f2 100644 --- a/src/Security/Security/help/Get-AzSecuritySetting.md +++ b/src/Security/Security/help/Get-AzSecuritySetting.md @@ -14,14 +14,14 @@ Get security settings in Azure Security Center ### SubscriptionScope (Default) ``` -Get-AzSecuritySetting [-DefaultProfile ] +Get-AzSecuritySetting [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySetting -SettingName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -60,6 +60,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SettingName Setting name. (MCAS/WDATP/Sentinel) diff --git a/src/Security/Security/help/Get-AzSecuritySolution.md b/src/Security/Security/help/Get-AzSecuritySolution.md index 1be910886d54..8f31bfab7d3a 100644 --- a/src/Security/Security/help/Get-AzSecuritySolution.md +++ b/src/Security/Security/help/Get-AzSecuritySolution.md @@ -14,20 +14,20 @@ Get Security Solutions ### SubscriptionScope (Default) ``` -Get-AzSecuritySolution [-DefaultProfile ] +Get-AzSecuritySolution [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzSecuritySolution -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecuritySolution -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecuritySolutionsReferenceData.md b/src/Security/Security/help/Get-AzSecuritySolutionsReferenceData.md index 79919840b2db..4b351f67a1e3 100644 --- a/src/Security/Security/help/Get-AzSecuritySolutionsReferenceData.md +++ b/src/Security/Security/help/Get-AzSecuritySolutionsReferenceData.md @@ -15,19 +15,19 @@ Get Security Solutions Reference Data ### SubscriptionScope (Default) ``` Get-AzSecuritySolutionsReferenceData [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySolutionsReferenceData -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecuritySolutionsReferenceData -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource name. diff --git a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentBaseline.md b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentBaseline.md index 622c0a7c62eb..a59b334137e8 100644 --- a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentBaseline.md +++ b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentBaseline.md @@ -16,14 +16,14 @@ Get SQL vulnerability assessment baseline. ``` Get-AzSecuritySqlVulnerabilityAssessmentBaseline [-RuleId ] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### OnPremMachines ``` Get-AzSecuritySqlVulnerabilityAssessmentBaseline [-RuleId ] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId -WorkspaceResourceId - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. Supported resources are: diff --git a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanRecord.md b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanRecord.md index a0b609b5a27e..4366ed2e91b5 100644 --- a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanRecord.md +++ b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanRecord.md @@ -16,14 +16,14 @@ Gets SQL vulnerability assessment scan summary. ``` Get-AzSecuritySqlVulnerabilityAssessmentScanRecord [-ScanId ] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### OnPremMachines ``` Get-AzSecuritySqlVulnerabilityAssessmentScanRecord [-ScanId ] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId -WorkspaceResourceId - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -271,6 +271,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. Supported resources are: diff --git a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanResult.md b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanResult.md index 9decb95d3a1e..10734d8e936d 100644 --- a/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanResult.md +++ b/src/Security/Security/help/Get-AzSecuritySqlVulnerabilityAssessmentScanResult.md @@ -16,14 +16,14 @@ Gets SQL vulnerability assessment scan results. ``` Get-AzSecuritySqlVulnerabilityAssessmentScanResult [-ScanId ] [-RuleId ] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### OnPremMachines ``` Get-AzSecuritySqlVulnerabilityAssessmentScanResult [-ScanId ] [-RuleId ] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId - -WorkspaceResourceId [-DefaultProfile ] + -WorkspaceResourceId [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -392,6 +392,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecuritySubAssessment.md b/src/Security/Security/help/Get-AzSecuritySubAssessment.md index 802f37544b15..3c7a09e2db31 100644 --- a/src/Security/Security/help/Get-AzSecuritySubAssessment.md +++ b/src/Security/Security/help/Get-AzSecuritySubAssessment.md @@ -15,31 +15,31 @@ Gets sub assessments results in a subscription. ### SubscriptionScope (Default) ``` Get-AzSecuritySubAssessment [-AssessedResourceId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecuritySubAssessment -Name [-AssessedResourceId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceIdLevelResource ``` Get-AzSecuritySubAssessment -Name -AssessmentName [-AssessedResourceId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceIdScope ``` Get-AzSecuritySubAssessment -AssessmentName [-AssessedResourceId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecuritySubAssessment -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -140,6 +140,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Get-AzSecurityTask.md b/src/Security/Security/help/Get-AzSecurityTask.md index 89bcb73b4dbd..877c632c9ed8 100644 --- a/src/Security/Security/help/Get-AzSecurityTask.md +++ b/src/Security/Security/help/Get-AzSecurityTask.md @@ -14,32 +14,32 @@ Gets the security tasks that Azure Security Center recommends you to do in order ### SubscriptionScope (Default) ``` -Get-AzSecurityTask [-DefaultProfile ] +Get-AzSecurityTask [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupScope ``` Get-AzSecurityTask -ResourceGroupName [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzSecurityTask -ResourceGroupName -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityTask -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityTask -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -133,6 +133,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecurityTopology.md b/src/Security/Security/help/Get-AzSecurityTopology.md index 5700b85d96ea..70ef251a3747 100644 --- a/src/Security/Security/help/Get-AzSecurityTopology.md +++ b/src/Security/Security/help/Get-AzSecurityTopology.md @@ -14,20 +14,20 @@ Gets a list of Security Topologies on a subscription ### SubscriptionScope (Default) ``` -Get-AzSecurityTopology [-DefaultProfile ] +Get-AzSecurityTopology [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceGroupLevelResource ``` Get-AzSecurityTopology -ResourceGroupName -Name -Location - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityTopology -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -112,6 +112,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Get-AzSecurityWorkspaceSetting.md b/src/Security/Security/help/Get-AzSecurityWorkspaceSetting.md index 61e98b52f6bd..241063ce5ae8 100644 --- a/src/Security/Security/help/Get-AzSecurityWorkspaceSetting.md +++ b/src/Security/Security/help/Get-AzSecurityWorkspaceSetting.md @@ -14,20 +14,20 @@ Gets the configured security workspace settings on a subscription. ### SubscriptionScope (Default) ``` -Get-AzSecurityWorkspaceSetting [-DefaultProfile ] +Get-AzSecurityWorkspaceSetting [-DefaultProfile ] [-ProgressAction ] [] ``` ### SubscriptionLevelResource ``` Get-AzSecurityWorkspaceSetting -Name [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ResourceId ``` Get-AzSecurityWorkspaceSetting -ResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -80,6 +80,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Get-AzSqlInformationProtectionPolicy.md b/src/Security/Security/help/Get-AzSqlInformationProtectionPolicy.md index 739d4e4c2fd2..8c233c7bab2a 100644 --- a/src/Security/Security/help/Get-AzSqlInformationProtectionPolicy.md +++ b/src/Security/Security/help/Get-AzSqlInformationProtectionPolicy.md @@ -14,7 +14,7 @@ Retrieves the effective tenant SQL information protection policy. ``` Get-AzSqlInformationProtectionPolicy [-AsJob] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -59,6 +59,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOffboard.md b/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOffboard.md index edc3a85f4e89..5381019ebe01 100644 --- a/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOffboard.md +++ b/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOffboard.md @@ -16,14 +16,14 @@ The system will stop monitoring the operations within the Azure API Management A ### Delete (Default) ``` Invoke-AzSecurityApiCollectionApimOffboard -ApiId -ResourceGroupName -ServiceName - [-SubscriptionId ] [-DefaultProfile ] [-PassThru] + [-SubscriptionId ] [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Invoke-AzSecurityApiCollectionApimOffboard -InputObject [-DefaultProfile ] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -102,6 +102,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOnboard.md b/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOnboard.md index e5c1a3328a3f..215ee952532d 100644 --- a/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOnboard.md +++ b/src/Security/Security/help/Invoke-AzSecurityApiCollectionApimOnboard.md @@ -17,13 +17,13 @@ The system will start monitoring the operations within the Azure Management API ``` Invoke-AzSecurityApiCollectionApimOnboard -ApiId -ResourceGroupName -ServiceName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AzureViaIdentity ``` Invoke-AzSecurityApiCollectionApimOnboard -InputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -135,6 +135,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/New-AzAlertsSuppressionRuleScope.md b/src/Security/Security/help/New-AzAlertsSuppressionRuleScope.md index d30ec5a30e02..9e4785e98d77 100644 --- a/src/Security/Security/help/New-AzAlertsSuppressionRuleScope.md +++ b/src/Security/Security/help/New-AzAlertsSuppressionRuleScope.md @@ -14,7 +14,7 @@ Helper cmdlet to create PSIScopeElement. ``` New-AzAlertsSuppressionRuleScope -Field [-ContainsSubstring ] [-AnyOf ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject.md b/src/Security/Security/help/New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject.md index 97d0bed060bd..442430d8a2be 100644 --- a/src/Security/Security/help/New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject.md +++ b/src/Security/Security/help/New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject.md @@ -14,7 +14,7 @@ Create new allow list custom alert rule for device security group (IoT Security) ``` New-AzDeviceSecurityGroupAllowlistCustomAlertRuleObject -Enabled -Type - -AllowlistValue [-DefaultProfile ] + -AllowlistValue [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -86,6 +86,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Type Rule type. diff --git a/src/Security/Security/help/New-AzDeviceSecurityGroupDenylistCustomAlertRuleObject.md b/src/Security/Security/help/New-AzDeviceSecurityGroupDenylistCustomAlertRuleObject.md index 5dffc4faedfd..87b54e1c8d43 100644 --- a/src/Security/Security/help/New-AzDeviceSecurityGroupDenylistCustomAlertRuleObject.md +++ b/src/Security/Security/help/New-AzDeviceSecurityGroupDenylistCustomAlertRuleObject.md @@ -14,7 +14,7 @@ Create new deny list custom alert rule for device security group (IoT Security) ``` New-AzDeviceSecurityGroupDenylistCustomAlertRuleObject -Enabled -Type - -DenylistValue [-DefaultProfile ] + -DenylistValue [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -86,6 +86,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Type Rule type. diff --git a/src/Security/Security/help/New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject.md b/src/Security/Security/help/New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject.md index e449d60aaa4d..5f2fec1c430e 100644 --- a/src/Security/Security/help/New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject.md +++ b/src/Security/Security/help/New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject.md @@ -15,7 +15,7 @@ Create new threshold custom alert rule for device security group (IoT Security) ``` New-AzDeviceSecurityGroupThresholdCustomAlertRuleObject -MinThreshold -MaxThreshold -Enabled -Type [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -101,6 +101,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Type Rule type. diff --git a/src/Security/Security/help/New-AzDeviceSecurityGroupTimeWindowRuleObject.md b/src/Security/Security/help/New-AzDeviceSecurityGroupTimeWindowRuleObject.md index 2391cd504709..3076974c49a8 100644 --- a/src/Security/Security/help/New-AzDeviceSecurityGroupTimeWindowRuleObject.md +++ b/src/Security/Security/help/New-AzDeviceSecurityGroupTimeWindowRuleObject.md @@ -15,7 +15,7 @@ Create new time window rule for device security group (IoT Security) ``` New-AzDeviceSecurityGroupTimeWindowRuleObject -TimeWindowSize -MinThreshold -MaxThreshold -Enabled -Type [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -103,6 +103,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -TimeWindowSize Time window size. diff --git a/src/Security/Security/help/New-AzIotSecuritySolutionRecommendationConfigurationObject.md b/src/Security/Security/help/New-AzIotSecuritySolutionRecommendationConfigurationObject.md index 0283a970ea90..f7a4688b703b 100644 --- a/src/Security/Security/help/New-AzIotSecuritySolutionRecommendationConfigurationObject.md +++ b/src/Security/Security/help/New-AzIotSecuritySolutionRecommendationConfigurationObject.md @@ -14,7 +14,7 @@ Create new recommendation configuration for iot security solution ``` New-AzIotSecuritySolutionRecommendationConfigurationObject -RecommendationType -Enabled - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecommendationType Recommendation type. diff --git a/src/Security/Security/help/New-AzIotSecuritySolutionUserDefinedResourcesObject.md b/src/Security/Security/help/New-AzIotSecuritySolutionUserDefinedResourcesObject.md index 5e85bf4217fb..644ddef8aae6 100644 --- a/src/Security/Security/help/New-AzIotSecuritySolutionUserDefinedResourcesObject.md +++ b/src/Security/Security/help/New-AzIotSecuritySolutionUserDefinedResourcesObject.md @@ -14,7 +14,7 @@ Create new user defined resources for iot security solution ``` New-AzIotSecuritySolutionUserDefinedResourcesObject -Query -QuerySubscriptionList - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Query Query. diff --git a/src/Security/Security/help/New-AzSecurityAutomation.md b/src/Security/Security/help/New-AzSecurityAutomation.md index 77c66e2cc07d..5f3109f3a98f 100644 --- a/src/Security/Security/help/New-AzSecurityAutomation.md +++ b/src/Security/Security/help/New-AzSecurityAutomation.md @@ -17,7 +17,7 @@ Creates new security automation New-AzSecurityAutomation -ResourceGroupName -Name -Location [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] -Scope -Source -Action - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ New-AzSecurityAutomation -ResourceGroupName -Name -Location -Location [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] -Scope -Source -Action - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -35,7 +35,7 @@ New-AzSecurityAutomation -ResourceId -Location [-Etag New-AzSecurityAutomation [-Location ] [-Etag ] [-Tag ] [-Description ] [-IsEnabled ] [-Scope ] [-Source ] -Action -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -185,6 +185,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/New-AzSecurityAutomationActionObject.md b/src/Security/Security/help/New-AzSecurityAutomationActionObject.md index 942d7cca4893..31f06262bac7 100644 --- a/src/Security/Security/help/New-AzSecurityAutomationActionObject.md +++ b/src/Security/Security/help/New-AzSecurityAutomationActionObject.md @@ -15,20 +15,20 @@ Creates new security automation action object ### SecurityAutomationActionLogicApp (Default) ``` New-AzSecurityAutomationActionObject -LogicAppResourceId -Uri - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SecurityAutomationActionEventHub ``` New-AzSecurityAutomationActionObject -EventHubResourceId -ConnectionString - [-SasPolicyName ] [-DefaultProfile ] + [-SasPolicyName ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### SecurityAutomationActionWorkspace ``` New-AzSecurityAutomationActionObject -WorkspaceResourceId [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SasPolicyName The target Event Hub SAS policy name diff --git a/src/Security/Security/help/New-AzSecurityAutomationRuleObject.md b/src/Security/Security/help/New-AzSecurityAutomationRuleObject.md index e50f45cc5335..b53185a8063d 100644 --- a/src/Security/Security/help/New-AzSecurityAutomationRuleObject.md +++ b/src/Security/Security/help/New-AzSecurityAutomationRuleObject.md @@ -14,7 +14,7 @@ Creates security automation rule object ``` New-AzSecurityAutomationRuleObject -PropertyJPath -Operator -ExpectedValue - -PropertyType [-DefaultProfile ] + -PropertyType [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -78,6 +78,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertyJPath The JPath of the entity model property that should be checked diff --git a/src/Security/Security/help/New-AzSecurityAutomationRuleSetObject.md b/src/Security/Security/help/New-AzSecurityAutomationRuleSetObject.md index 3f235bdd7253..ce741ba651f0 100644 --- a/src/Security/Security/help/New-AzSecurityAutomationRuleSetObject.md +++ b/src/Security/Security/help/New-AzSecurityAutomationRuleSetObject.md @@ -14,7 +14,7 @@ Creates security automation rule set object ``` New-AzSecurityAutomationRuleSetObject -Rule - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -46,6 +46,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Rule A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set diff --git a/src/Security/Security/help/New-AzSecurityAutomationScopeObject.md b/src/Security/Security/help/New-AzSecurityAutomationScopeObject.md index e5fb316ed7ad..4e8e04509220 100644 --- a/src/Security/Security/help/New-AzSecurityAutomationScopeObject.md +++ b/src/Security/Security/help/New-AzSecurityAutomationScopeObject.md @@ -14,7 +14,7 @@ Creates security automation scope object ``` New-AzSecurityAutomationScopeObject -Description -ScopePath - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -61,6 +61,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ScopePath The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs) diff --git a/src/Security/Security/help/New-AzSecurityAutomationSourceObject.md b/src/Security/Security/help/New-AzSecurityAutomationSourceObject.md index 7a6590e47b11..e0f6292a54a5 100644 --- a/src/Security/Security/help/New-AzSecurityAutomationSourceObject.md +++ b/src/Security/Security/help/New-AzSecurityAutomationSourceObject.md @@ -15,13 +15,13 @@ Creates security automation source object ### SecurityAutomationSource (Default) ``` New-AzSecurityAutomationSourceObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### SecurityAutomationActionLogicApp ``` New-AzSecurityAutomationSourceObject -EventSource -RuleSet - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RuleSet The Logic App trigger URI endpoint (it will not be included in any response) diff --git a/src/Security/Security/help/New-AzSecurityAwsEnvironmentObject.md b/src/Security/Security/help/New-AzSecurityAwsEnvironmentObject.md index 96aa0fec3d40..43ac1d632de0 100644 --- a/src/Security/Security/help/New-AzSecurityAwsEnvironmentObject.md +++ b/src/Security/Security/help/New-AzSecurityAwsEnvironmentObject.md @@ -14,7 +14,7 @@ Create an in-memory object for AwsEnvironment. ``` New-AzSecurityAwsEnvironmentObject [-OrganizationalData ] [-Region ] - [-ScanInterval ] [] + [-ScanInterval ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -74,6 +74,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Region list of regions to scan. diff --git a/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMasterObject.md b/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMasterObject.md index 2ad29bc9100e..3190a93a9333 100644 --- a/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMasterObject.md +++ b/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMasterObject.md @@ -14,7 +14,7 @@ Create an in-memory object for AwsOrganizationalDataMaster. ``` New-AzSecurityAwsOrganizationalDataMasterObject [-ExcludedAccountId ] [-StacksetName ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -50,6 +50,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StacksetName If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset. diff --git a/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMemberObject.md b/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMemberObject.md index 54efdd6c9dd3..66a56c507350 100644 --- a/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMemberObject.md +++ b/src/Security/Security/help/New-AzSecurityAwsOrganizationalDataMemberObject.md @@ -14,7 +14,7 @@ Create an in-memory object for AwsOrganizationalDataMember. ``` New-AzSecurityAwsOrganizationalDataMemberObject [-ParentHierarchyId ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -50,6 +50,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityAzureDevOpsScopeEnvironmentObject.md b/src/Security/Security/help/New-AzSecurityAzureDevOpsScopeEnvironmentObject.md index 0131e600555b..1a27f0750197 100644 --- a/src/Security/Security/help/New-AzSecurityAzureDevOpsScopeEnvironmentObject.md +++ b/src/Security/Security/help/New-AzSecurityAzureDevOpsScopeEnvironmentObject.md @@ -13,7 +13,7 @@ Create an in-memory object for AzureDevOpsScopeEnvironment. ## SYNTAX ``` -New-AzSecurityAzureDevOpsScopeEnvironmentObject [] +New-AzSecurityAzureDevOpsScopeEnvironmentObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ AzureDevOpsScope ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityConnector.md b/src/Security/Security/help/New-AzSecurityConnector.md index d51490a6ca1e..063704592d84 100644 --- a/src/Security/Security/help/New-AzSecurityConnector.md +++ b/src/Security/Security/help/New-AzSecurityConnector.md @@ -9,7 +9,7 @@ schema: 2.0.0 ## SYNOPSIS Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ## SYNTAX @@ -17,13 +17,13 @@ If a security connector is already created and a subsequent request is issued fo New-AzSecurityConnector -Name -ResourceGroupName [-SubscriptionId ] [-EnvironmentData ] [-EnvironmentName ] [-Etag ] [-HierarchyIdentifier ] [-Kind ] [-Location ] [-Offering ] - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION Create a security connector. -If a security connector is already created and a subsequent request is issued for the same security connector id, then it will be updated. +If a security connector is already Created and a subsequent request is issued for the same security connector id, then it will be Created. ## EXAMPLES @@ -509,6 +509,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. diff --git a/src/Security/Security/help/New-AzSecurityConnectorActionableRemediationObject.md b/src/Security/Security/help/New-AzSecurityConnectorActionableRemediationObject.md index a8994da2b2e9..156155cfc371 100644 --- a/src/Security/Security/help/New-AzSecurityConnectorActionableRemediationObject.md +++ b/src/Security/Security/help/New-AzSecurityConnectorActionableRemediationObject.md @@ -15,7 +15,7 @@ Create an in-memory object for ActionableRemediation. ``` New-AzSecurityConnectorActionableRemediationObject [-BranchConfiguration ] [-CategoryConfiguration ] [-InheritFromParentState ] [-State ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -95,6 +95,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -State ActionableRemediation Setting. None - the setting was never set. diff --git a/src/Security/Security/help/New-AzSecurityConnectorDevOpsConfiguration.md b/src/Security/Security/help/New-AzSecurityConnectorDevOpsConfiguration.md index c188332c5919..f9a8d0a50221 100644 --- a/src/Security/Security/help/New-AzSecurityConnectorDevOpsConfiguration.md +++ b/src/Security/Security/help/New-AzSecurityConnectorDevOpsConfiguration.md @@ -16,7 +16,7 @@ Create a DevOps Configuration. New-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-AuthorizationCode ] [-AutoDiscovery ] [-TopLevelInventoryList ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -127,6 +127,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/New-AzSecurityCspmMonitorAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityCspmMonitorAwsOfferingObject.md index 58ae85160277..698ae5083d64 100644 --- a/src/Security/Security/help/New-AzSecurityCspmMonitorAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityCspmMonitorAwsOfferingObject.md @@ -14,7 +14,7 @@ Create an in-memory object for CspmMonitorAwsOffering. ``` New-AzSecurityCspmMonitorAwsOfferingObject [-NativeCloudConnectionCloudRoleArn ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -50,6 +50,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.md b/src/Security/Security/help/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.md index fe9c71ae2ba2..20a8d2744778 100644 --- a/src/Security/Security/help/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityCspmMonitorAzureDevOpsOfferingObject.md @@ -13,7 +13,7 @@ Create an in-memory object for CspmMonitorAzureDevOpsOffering. ## SYNTAX ``` -New-AzSecurityCspmMonitorAzureDevOpsOfferingObject [] +New-AzSecurityCspmMonitorAzureDevOpsOfferingObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ Description OfferingType ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityCspmMonitorGcpOfferingObject.md b/src/Security/Security/help/New-AzSecurityCspmMonitorGcpOfferingObject.md index d133709f3933..b37fe85ce284 100644 --- a/src/Security/Security/help/New-AzSecurityCspmMonitorGcpOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityCspmMonitorGcpOfferingObject.md @@ -14,7 +14,7 @@ Create an in-memory object for CspmMonitorGcpOffering. ``` New-AzSecurityCspmMonitorGcpOfferingObject [-NativeCloudConnectionServiceAccountEmailAddress ] - [-NativeCloudConnectionWorkloadIdentityProviderId ] + [-NativeCloudConnectionWorkloadIdentityProviderId ] [-ProgressAction ] [] ``` @@ -66,6 +66,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityCspmMonitorGitLabOfferingObject.md b/src/Security/Security/help/New-AzSecurityCspmMonitorGitLabOfferingObject.md index ed5cea87a601..effc982bd2fb 100644 --- a/src/Security/Security/help/New-AzSecurityCspmMonitorGitLabOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityCspmMonitorGitLabOfferingObject.md @@ -13,7 +13,7 @@ Create an in-memory object for CspmMonitorGitLabOffering. ## SYNTAX ``` -New-AzSecurityCspmMonitorGitLabOfferingObject [] +New-AzSecurityCspmMonitorGitLabOfferingObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ Description OfferingType ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityCspmMonitorGithubOfferingObject.md b/src/Security/Security/help/New-AzSecurityCspmMonitorGithubOfferingObject.md index 201134f84d1f..94b8263ca80d 100644 --- a/src/Security/Security/help/New-AzSecurityCspmMonitorGithubOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityCspmMonitorGithubOfferingObject.md @@ -13,7 +13,7 @@ Create an in-memory object for CspmMonitorGithubOffering. ## SYNTAX ``` -New-AzSecurityCspmMonitorGithubOfferingObject [] +New-AzSecurityCspmMonitorGithubOfferingObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ Description OfferingType ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityDefenderCspmAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderCspmAwsOfferingObject.md index c33d98719d2e..cf6210d19026 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderCspmAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderCspmAwsOfferingObject.md @@ -22,7 +22,7 @@ New-AzSecurityDefenderCspmAwsOfferingObject [-CiemDiscoveryCloudRoleArn [-DatabaseDspmEnabled ] [-MdcContainerAgentlessDiscoveryK8SCloudRoleArn ] [-MdcContainerAgentlessDiscoveryK8SEnabled ] [-MdcContainerImageAssessmentCloudRoleArn ] [-MdcContainerImageAssessmentEnabled ] [-VMScannerEnabled ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -276,6 +276,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VMScannerEnabled Is Microsoft Defender for Server VM scanning enabled. diff --git a/src/Security/Security/help/New-AzSecurityDefenderCspmGcpOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderCspmGcpOfferingObject.md index 48f9952619e7..0d5eefe72723 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderCspmGcpOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderCspmGcpOfferingObject.md @@ -25,7 +25,7 @@ New-AzSecurityDefenderCspmGcpOfferingObject [-CiemDiscoveryAzureActiveDirectoryA [-MdcContainerImageAssessmentEnabled ] [-MdcContainerImageAssessmentServiceAccountEmailAddress ] [-MdcContainerImageAssessmentWorkloadIdentityProviderId ] [-VMScannerEnabled ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -278,6 +278,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VMScannerEnabled Is Microsoft Defender for Server VM scanning enabled. diff --git a/src/Security/Security/help/New-AzSecurityDefenderForContainersAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForContainersAwsOfferingObject.md index ce8eb67fdd5e..7dbd116b2595 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForContainersAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForContainersAwsOfferingObject.md @@ -21,7 +21,7 @@ New-AzSecurityDefenderForContainersAwsOfferingObject [-AutoProvisioning ] [-MdcContainerAgentlessDiscoveryK8SCloudRoleArn ] [-MdcContainerAgentlessDiscoveryK8SEnabled ] [-MdcContainerImageAssessmentCloudRoleArn ] [-MdcContainerImageAssessmentEnabled ] [-ScubaExternalId ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -257,6 +257,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ScubaExternalId The externalId used by the data reader to prevent the confused deputy attack. diff --git a/src/Security/Security/help/New-AzSecurityDefenderForContainersGcpOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForContainersGcpOfferingObject.md index 30b5e5f55d08..2084401477fc 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForContainersGcpOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForContainersGcpOfferingObject.md @@ -24,7 +24,7 @@ New-AzSecurityDefenderForContainersGcpOfferingObject [-AuditLogsAutoProvisioning [-MdcContainerImageAssessmentWorkloadIdentityProviderId ] [-NativeCloudConnectionServiceAccountEmailAddress ] [-NativeCloudConnectionWorkloadIdentityProviderId ] [-PolicyAgentAutoProvisioningFlag ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -258,6 +258,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityDefenderForDatabasesAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForDatabasesAwsOfferingObject.md index 177d79e0ecff..055d348078f4 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForDatabasesAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForDatabasesAwsOfferingObject.md @@ -16,7 +16,7 @@ Create an in-memory object for DefenderForDatabasesAwsOffering. New-AzSecurityDefenderForDatabasesAwsOfferingObject [-ArcAutoProvisioningCloudRoleArn ] [-ArcAutoProvisioningEnabled ] [-ConfigurationPrivateLinkScope ] [-ConfigurationProxy ] [-DatabaseDspmCloudRoleArn ] [-DatabaseDspmEnabled ] - [-RdCloudRoleArn ] [-RdEnabled ] [] + [-RdCloudRoleArn ] [-RdEnabled ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RdCloudRoleArn The cloud role ARN in AWS for this feature. diff --git a/src/Security/Security/help/New-AzSecurityDefenderForDatabasesGcpOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForDatabasesGcpOfferingObject.md index d8672caeb5ab..36a47658389f 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForDatabasesGcpOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForDatabasesGcpOfferingObject.md @@ -17,7 +17,7 @@ New-AzSecurityDefenderForDatabasesGcpOfferingObject [-ArcAutoProvisioningEnabled [-ConfigurationPrivateLinkScope ] [-ConfigurationProxy ] [-DefenderForDatabaseArcAutoProvisioningServiceAccountEmailAddress ] [-DefenderForDatabaseArcAutoProvisioningWorkloadIdentityProviderId ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityDefenderForServersAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForServersAwsOfferingObject.md index c756457f8bc4..b1a7cb2e10e5 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForServersAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForServersAwsOfferingObject.md @@ -19,7 +19,7 @@ New-AzSecurityDefenderForServersAwsOfferingObject [-ArcAutoProvisioningCloudRole [-ConfigurationPrivateLinkScope ] [-ConfigurationProxy ] [-ConfigurationScanningMode ] [-ConfigurationType ] [-DefenderForServerCloudRoleArn ] [-MdeAutoProvisioningConfiguration ] [-MdeAutoProvisioningEnabled ] [-SubPlanType ] - [-VMScannerEnabled ] [-VaAutoProvisioningEnabled ] + [-VMScannerEnabled ] [-VaAutoProvisioningEnabled ] [-ProgressAction ] [] ``` @@ -229,6 +229,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubPlanType The available sub plans. diff --git a/src/Security/Security/help/New-AzSecurityDefenderForServersGcpOfferingObject.md b/src/Security/Security/help/New-AzSecurityDefenderForServersGcpOfferingObject.md index 5d90bfb72735..c9d37bb7488f 100644 --- a/src/Security/Security/help/New-AzSecurityDefenderForServersGcpOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityDefenderForServersGcpOfferingObject.md @@ -19,7 +19,7 @@ New-AzSecurityDefenderForServersGcpOfferingObject [-ArcAutoProvisioningEnabled < [-ConfigurationType ] [-DefenderForServerServiceAccountEmailAddress ] [-DefenderForServerWorkloadIdentityProviderId ] [-MdeAutoProvisioningConfiguration ] [-MdeAutoProvisioningEnabled ] [-SubPlanType ] [-VMScannerEnabled ] - [-VaAutoProvisioningEnabled ] [] + [-VaAutoProvisioningEnabled ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -210,6 +210,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubPlanType The available sub plans. diff --git a/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataMemberObject.md b/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataMemberObject.md index baef925287ad..e9c392dea883 100644 --- a/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataMemberObject.md +++ b/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataMemberObject.md @@ -14,7 +14,7 @@ Create an in-memory object for GcpOrganizationalDataMember. ``` New-AzSecurityGcpOrganizationalDataMemberObject [-ManagementProjectNumber ] - [-ParentHierarchyId ] [] + [-ParentHierarchyId ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -65,6 +65,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataOrganizationObject.md b/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataOrganizationObject.md index c26448829ffa..eecb8f64c3f6 100644 --- a/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataOrganizationObject.md +++ b/src/Security/Security/help/New-AzSecurityGcpOrganizationalDataOrganizationObject.md @@ -15,7 +15,7 @@ Create an in-memory object for GcpOrganizationalDataOrganization. ``` New-AzSecurityGcpOrganizationalDataOrganizationObject [-ExcludedProjectNumber ] [-ServiceAccountEmailAddress ] [-WorkloadIdentityProviderId ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -53,6 +53,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ServiceAccountEmailAddress The service account email address which represents the organization level permissions container. diff --git a/src/Security/Security/help/New-AzSecurityGcpProjectEnvironmentObject.md b/src/Security/Security/help/New-AzSecurityGcpProjectEnvironmentObject.md index 525257f55d24..e3295e3a08b8 100644 --- a/src/Security/Security/help/New-AzSecurityGcpProjectEnvironmentObject.md +++ b/src/Security/Security/help/New-AzSecurityGcpProjectEnvironmentObject.md @@ -15,7 +15,7 @@ Create an in-memory object for GcpProjectEnvironment. ``` New-AzSecurityGcpProjectEnvironmentObject [-OrganizationalData ] [-ProjectDetailProjectId ] [-ProjectDetailProjectNumber ] [-ScanInterval ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -61,6 +61,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectDetailProjectId The GCP Project id. diff --git a/src/Security/Security/help/New-AzSecurityGitHubScopeEnvironmentObject.md b/src/Security/Security/help/New-AzSecurityGitHubScopeEnvironmentObject.md index 658a8ac60f3a..8c17e7db5139 100644 --- a/src/Security/Security/help/New-AzSecurityGitHubScopeEnvironmentObject.md +++ b/src/Security/Security/help/New-AzSecurityGitHubScopeEnvironmentObject.md @@ -13,7 +13,7 @@ Create an in-memory object for GitHubScopeEnvironment. ## SYNTAX ``` -New-AzSecurityGitHubScopeEnvironmentObject [] +New-AzSecurityGitHubScopeEnvironmentObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ GithubScope ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityGitLabScopeEnvironmentObject.md b/src/Security/Security/help/New-AzSecurityGitLabScopeEnvironmentObject.md index c9f5d3ea307c..78af9967097c 100644 --- a/src/Security/Security/help/New-AzSecurityGitLabScopeEnvironmentObject.md +++ b/src/Security/Security/help/New-AzSecurityGitLabScopeEnvironmentObject.md @@ -13,7 +13,7 @@ Create an in-memory object for GitLabScopeEnvironment. ## SYNTAX ``` -New-AzSecurityGitLabScopeEnvironmentObject [] +New-AzSecurityGitLabScopeEnvironmentObject [-ProgressAction ] [] ``` ## DESCRIPTION @@ -34,6 +34,21 @@ GitlabScope ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/New-AzSecurityInformationProtectionAwsOfferingObject.md b/src/Security/Security/help/New-AzSecurityInformationProtectionAwsOfferingObject.md index 70406237d3cd..fbdde1487dbd 100644 --- a/src/Security/Security/help/New-AzSecurityInformationProtectionAwsOfferingObject.md +++ b/src/Security/Security/help/New-AzSecurityInformationProtectionAwsOfferingObject.md @@ -14,7 +14,7 @@ Create an in-memory object for InformationProtectionAwsOffering. ``` New-AzSecurityInformationProtectionAwsOfferingObject [-InformationProtectionCloudRoleArn ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -50,6 +50,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/Security/Security/help/Remove-AzAlertsSuppressionRule.md b/src/Security/Security/help/Remove-AzAlertsSuppressionRule.md index b24beab7986b..a7e57eba4964 100644 --- a/src/Security/Security/help/Remove-AzAlertsSuppressionRule.md +++ b/src/Security/Security/help/Remove-AzAlertsSuppressionRule.md @@ -15,19 +15,19 @@ Deletes an alerts suppression rule. ### SubscriptionLevelResource (Default) ``` Remove-AzAlertsSuppressionRule -Name [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzAlertsSuppressionRule -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzAlertsSuppressionRule -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Remove-AzDeviceSecurityGroup.md b/src/Security/Security/help/Remove-AzDeviceSecurityGroup.md index 4d7ffd618099..6532293794e1 100644 --- a/src/Security/Security/help/Remove-AzDeviceSecurityGroup.md +++ b/src/Security/Security/help/Remove-AzDeviceSecurityGroup.md @@ -15,21 +15,21 @@ Delete device security group ### ResourceIdLevelResource (Default) ``` Remove-AzDeviceSecurityGroup -Name -HubResourceId [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzDeviceSecurityGroup -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzDeviceSecurityGroup -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -121,6 +121,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Remove-AzIotSecuritySolution.md b/src/Security/Security/help/Remove-AzIotSecuritySolution.md index 9770a72a9665..a8b6c51e4c2b 100644 --- a/src/Security/Security/help/Remove-AzIotSecuritySolution.md +++ b/src/Security/Security/help/Remove-AzIotSecuritySolution.md @@ -15,20 +15,20 @@ Delete IoT security solution ### ResourceGroupLevelResource (Default) ``` Remove-AzIotSecuritySolution -Name -ResourceGroupName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzIotSecuritySolution -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzIotSecuritySolution -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -107,6 +107,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Remove-AzJitNetworkAccessPolicy.md b/src/Security/Security/help/Remove-AzJitNetworkAccessPolicy.md index 030f697f7c28..2f545f0f743e 100644 --- a/src/Security/Security/help/Remove-AzJitNetworkAccessPolicy.md +++ b/src/Security/Security/help/Remove-AzJitNetworkAccessPolicy.md @@ -15,20 +15,20 @@ Deletes a JIT network access policy. ### ResourceGroupLevelResource (Default) ``` Remove-AzJitNetworkAccessPolicy -ResourceGroupName -Location -Name [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzJitNetworkAccessPolicy -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzJitNetworkAccessPolicy -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -122,6 +122,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Remove-AzSecurityAssessment.md b/src/Security/Security/help/Remove-AzSecurityAssessment.md index 8949397fddb2..068d0683d37d 100644 --- a/src/Security/Security/help/Remove-AzSecurityAssessment.md +++ b/src/Security/Security/help/Remove-AzSecurityAssessment.md @@ -15,26 +15,26 @@ Deletes a security assessment result from a subscription. ### SubscriptionLevelResource (Default) ``` Remove-AzSecurityAssessment -Name [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceIdLevelResource ``` Remove-AzSecurityAssessment -Name [-AssessedResourceId ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzSecurityAssessment -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecurityAssessment -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -127,6 +127,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Remove-AzSecurityAssessmentMetadata.md b/src/Security/Security/help/Remove-AzSecurityAssessmentMetadata.md index 419fbb506a1b..71ec1a68ed80 100644 --- a/src/Security/Security/help/Remove-AzSecurityAssessmentMetadata.md +++ b/src/Security/Security/help/Remove-AzSecurityAssessmentMetadata.md @@ -15,19 +15,19 @@ Deletes a security assessment metadata from a subscription. ### SubscriptionLevelResource (Default) ``` Remove-AzSecurityAssessmentMetadata -Name [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzSecurityAssessmentMetadata -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecurityAssessmentMetadata -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Remove-AzSecurityAutomation.md b/src/Security/Security/help/Remove-AzSecurityAutomation.md index c2b3d94e145a..1393f0554015 100644 --- a/src/Security/Security/help/Remove-AzSecurityAutomation.md +++ b/src/Security/Security/help/Remove-AzSecurityAutomation.md @@ -15,20 +15,20 @@ Deletes security automation ### ResourceGroupLevelResource (Default) ``` Remove-AzSecurityAutomation -ResourceGroupName -Name [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzSecurityAutomation -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecurityAutomation -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -106,6 +106,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Remove-AzSecurityConnector.md b/src/Security/Security/help/Remove-AzSecurityConnector.md index c8a855ec505c..8a9269fc1404 100644 --- a/src/Security/Security/help/Remove-AzSecurityConnector.md +++ b/src/Security/Security/help/Remove-AzSecurityConnector.md @@ -15,14 +15,14 @@ Deletes a security connector. ### Delete (Default) ``` Remove-AzSecurityConnector -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-PassThru] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzSecurityConnector -InputObject [-DefaultProfile ] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -98,6 +98,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. diff --git a/src/Security/Security/help/Remove-AzSecurityConnectorDevOpsConfiguration.md b/src/Security/Security/help/Remove-AzSecurityConnectorDevOpsConfiguration.md index 9870c4a063f3..5430bbabaab1 100644 --- a/src/Security/Security/help/Remove-AzSecurityConnectorDevOpsConfiguration.md +++ b/src/Security/Security/help/Remove-AzSecurityConnectorDevOpsConfiguration.md @@ -16,13 +16,13 @@ Deletes a DevOps Connector. ``` Remove-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzSecurityConnectorDevOpsConfiguration -InputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -113,6 +113,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Remove-AzSecurityContact.md b/src/Security/Security/help/Remove-AzSecurityContact.md index bf8db4d4d898..503856fa0149 100644 --- a/src/Security/Security/help/Remove-AzSecurityContact.md +++ b/src/Security/Security/help/Remove-AzSecurityContact.md @@ -15,19 +15,19 @@ Deletes a security contact. ### SubscriptionLevelResource (Default) ``` Remove-AzSecurityContact -Name [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzSecurityContact -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecurityContact -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Remove-AzSecuritySqlVulnerabilityAssessmentBaseline.md b/src/Security/Security/help/Remove-AzSecuritySqlVulnerabilityAssessmentBaseline.md index a1bd4272b14c..a8e24e9be4cf 100644 --- a/src/Security/Security/help/Remove-AzSecuritySqlVulnerabilityAssessmentBaseline.md +++ b/src/Security/Security/help/Remove-AzSecuritySqlVulnerabilityAssessmentBaseline.md @@ -16,21 +16,21 @@ Removes SQL vulnerability assessment baseline. ``` Remove-AzSecuritySqlVulnerabilityAssessmentBaseline -RuleId [-PassThru] [-Force] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### OnPremMachines ``` Remove-AzSecuritySqlVulnerabilityAssessmentBaseline -RuleId [-PassThru] [-Force] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId - -WorkspaceResourceId [-DefaultProfile ] + -WorkspaceResourceId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecuritySqlVulnerabilityAssessmentBaseline -InputObject - [-PassThru] [-Force] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-Force] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. Supported resources are: diff --git a/src/Security/Security/help/Remove-AzSecurityWorkspaceSetting.md b/src/Security/Security/help/Remove-AzSecurityWorkspaceSetting.md index ae918c3f6798..9ea1a53d7171 100644 --- a/src/Security/Security/help/Remove-AzSecurityWorkspaceSetting.md +++ b/src/Security/Security/help/Remove-AzSecurityWorkspaceSetting.md @@ -15,19 +15,19 @@ Deletes the security workspace setting for this subscription. ### SubscriptionLevelResource (Default) ``` Remove-AzSecurityWorkspaceSetting -Name [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Remove-AzSecurityWorkspaceSetting -ResourceId [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Remove-AzSecurityWorkspaceSetting -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -106,6 +106,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Set-AzAlertsSuppressionRule.md b/src/Security/Security/help/Set-AzAlertsSuppressionRule.md index c92ed3a5830a..cf9b6f77f26e 100644 --- a/src/Security/Security/help/Set-AzAlertsSuppressionRule.md +++ b/src/Security/Security/help/Set-AzAlertsSuppressionRule.md @@ -16,7 +16,7 @@ Create or update an alerts suppression rule. ``` Set-AzAlertsSuppressionRule -Name -AlertType [-ExpirationDateUtc ] -Reason -State [-Comment ] [-SuppressionAlertsScope ] - [-AllOf ] [-DefaultProfile ] + [-AllOf ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,7 +25,7 @@ Set-AzAlertsSuppressionRule -Name -AlertType [-ExpirationDateU Set-AzAlertsSuppressionRule -InputObject [-Name ] [-AlertType ] [-ExpirationDateUtc ] [-Reason ] [-State ] [-Comment ] [-SuppressionAlertsScope ] [-AllOf ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -172,6 +172,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Reason The reason for creating the suppression rule. diff --git a/src/Security/Security/help/Set-AzDeviceSecurityGroup.md b/src/Security/Security/help/Set-AzDeviceSecurityGroup.md index 2bc413fe9600..efc78176ffd2 100644 --- a/src/Security/Security/help/Set-AzDeviceSecurityGroup.md +++ b/src/Security/Security/help/Set-AzDeviceSecurityGroup.md @@ -17,7 +17,7 @@ Create or update device security group Set-AzDeviceSecurityGroup -Name -HubResourceId [-ThresholdRule ] [-TimeWindowRule ] [-AllowlistRule ] [-DenylistRule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Set-AzDeviceSecurityGroup -Name -HubResourceId Set-AzDeviceSecurityGroup [-ThresholdRule ] [-TimeWindowRule ] [-AllowlistRule ] [-DenylistRule ] -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -35,7 +35,7 @@ Set-AzDeviceSecurityGroup [-ThresholdRule ] Set-AzDeviceSecurityGroup [-ThresholdRule ] [-TimeWindowRule ] [-AllowlistRule ] [-DenylistRule ] -ResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. diff --git a/src/Security/Security/help/Set-AzIotSecuritySolution.md b/src/Security/Security/help/Set-AzIotSecuritySolution.md index a55d298a8ac5..e136e30084d4 100644 --- a/src/Security/Security/help/Set-AzIotSecuritySolution.md +++ b/src/Security/Security/help/Set-AzIotSecuritySolution.md @@ -18,7 +18,7 @@ Set-AzIotSecuritySolution -Name -ResourceGroupName [-Tag -DisplayName [-Enabled ] [-Export ] [-DisabledDataSource ] -IotHub [-UserDefinedResource ] [-RecommendationsConfiguration ] [-UnmaskedIpLoggingStatus ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -28,7 +28,7 @@ Set-AzIotSecuritySolution -InputObject [-Tag -Workspace -DisplayName [-Enabled ] [-Export ] [-DisabledDataSource ] -IotHub [-UserDefinedResource ] [-RecommendationsConfiguration ] [-UnmaskedIpLoggingStatus ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -38,7 +38,7 @@ Set-AzIotSecuritySolution -ResourceId [-Tag ] -Location [-Enabled ] [-Export ] [-DisabledDataSource ] -IotHub [-UserDefinedResource ] [-RecommendationsConfiguration ] [-UnmaskedIpLoggingStatus ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -301,6 +301,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecommendationsConfiguration Recommendations configuration. diff --git a/src/Security/Security/help/Set-AzJitNetworkAccessPolicy.md b/src/Security/Security/help/Set-AzJitNetworkAccessPolicy.md index 05121be7dbbb..4c38ce86e3c1 100644 --- a/src/Security/Security/help/Set-AzJitNetworkAccessPolicy.md +++ b/src/Security/Security/help/Set-AzJitNetworkAccessPolicy.md @@ -15,7 +15,7 @@ Updates JIT network access policy. ``` Set-AzJitNetworkAccessPolicy -ResourceGroupName -Location -Name -VirtualMachine -Kind - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -102,6 +102,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Set-AzSecurityAlert.md b/src/Security/Security/help/Set-AzSecurityAlert.md index 760042ed0bb4..215408c9600f 100644 --- a/src/Security/Security/help/Set-AzSecurityAlert.md +++ b/src/Security/Security/help/Set-AzSecurityAlert.md @@ -15,35 +15,35 @@ Updates a security alert state. ### SubscriptionLevelResource (Default) ``` Set-AzSecurityAlert -Location -Name -ActionType [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceGroupLevelResource ``` Set-AzSecurityAlert -ResourceGroupName -Location -Name -ActionType - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Set-AzSecurityAlert -ActionType -ResourceId [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Set-AzSecurityAlert [-ActionType ] -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObjectV3 ``` Set-AzSecurityAlert -InputObjectV3 [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -177,6 +177,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Set-AzSecurityAssessment.md b/src/Security/Security/help/Set-AzSecurityAssessment.md index a700dd6ecba4..e4cefef08680 100644 --- a/src/Security/Security/help/Set-AzSecurityAssessment.md +++ b/src/Security/Security/help/Set-AzSecurityAssessment.md @@ -17,7 +17,7 @@ Create or update a security assessment result on a resource Set-AzSecurityAssessment -Name -StatusCode [-StatusCause ] [-StatusDescription ] [-AdditionalData ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Set-AzSecurityAssessment -Name -StatusCode [-StatusCause -AssessedResourceId -StatusCode [-StatusCause ] [-StatusDescription ] [-AdditionalData ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -105,6 +105,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -StatusCause Progremmatic code for the cause of the assessment's result. diff --git a/src/Security/Security/help/Set-AzSecurityAssessmentMetadata.md b/src/Security/Security/help/Set-AzSecurityAssessmentMetadata.md index dba47ab5421b..704524c36bcb 100644 --- a/src/Security/Security/help/Set-AzSecurityAssessmentMetadata.md +++ b/src/Security/Security/help/Set-AzSecurityAssessmentMetadata.md @@ -15,7 +15,7 @@ Creates or updates a security assessment type. ``` Set-AzSecurityAssessmentMetadata -Name -DisplayName -Description [-RemediationDescription ] -Severity [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -93,6 +93,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RemediationDescription Detailed string that will help users to understand the different ways to mitigate or fix the security issue. diff --git a/src/Security/Security/help/Set-AzSecurityAutoProvisioningSetting.md b/src/Security/Security/help/Set-AzSecurityAutoProvisioningSetting.md index f0f7c0d3dce8..4105617dc339 100644 --- a/src/Security/Security/help/Set-AzSecurityAutoProvisioningSetting.md +++ b/src/Security/Security/help/Set-AzSecurityAutoProvisioningSetting.md @@ -15,21 +15,21 @@ Updates automatic provisioning setting ### SubscriptionLevelResource (Default) ``` Set-AzSecurityAutoProvisioningSetting -Name [-EnableAutoProvision] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Set-AzSecurityAutoProvisioningSetting [-EnableAutoProvision] -ResourceId - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Set-AzSecurityAutoProvisioningSetting -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -128,6 +128,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId Resource ID. diff --git a/src/Security/Security/help/Set-AzSecurityContact.md b/src/Security/Security/help/Set-AzSecurityContact.md index a98ae93f3615..7d2de6946fbc 100644 --- a/src/Security/Security/help/Set-AzSecurityContact.md +++ b/src/Security/Security/help/Set-AzSecurityContact.md @@ -14,7 +14,7 @@ Updates a security contact for a subscription. ``` Set-AzSecurityContact -Name -Email [-Phone ] [-AlertAdmin] [-NotifyOnAlert] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -132,6 +132,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Security/Security/help/Set-AzSecurityPricing.md b/src/Security/Security/help/Set-AzSecurityPricing.md index 439a765499bb..c8a48bf78768 100644 --- a/src/Security/Security/help/Set-AzSecurityPricing.md +++ b/src/Security/Security/help/Set-AzSecurityPricing.md @@ -19,14 +19,14 @@ Enables or disables Microsoft Defender plans for a subscription in Microsoft Def ### SubscriptionLevelResource (Default) ``` Set-AzSecurityPricing -Name -PricingTier [-SubPlan ] [-Extension ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Set-AzSecurityPricing -InputObject [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -140,6 +140,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubPlan Sub Plan. diff --git a/src/Security/Security/help/Set-AzSecuritySetting.md b/src/Security/Security/help/Set-AzSecuritySetting.md index 23730f465bb1..10a006c5cb1b 100644 --- a/src/Security/Security/help/Set-AzSecuritySetting.md +++ b/src/Security/Security/help/Set-AzSecuritySetting.md @@ -14,21 +14,21 @@ Update a security setting in Azure Security Center ### GeneralScope (Default) ``` -Set-AzSecuritySetting [-DefaultProfile ] [-WhatIf] +Set-AzSecuritySetting [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SettingsScope ``` Set-AzSecuritySetting -SettingName -SettingKind -Enabled - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Set-AzSecuritySetting -InputObject [-Enabled ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -110,6 +110,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SettingKind Setting kind. (DataExportSettings/AlertSyncSettings) diff --git a/src/Security/Security/help/Set-AzSecuritySqlVulnerabilityAssessmentBaseline.md b/src/Security/Security/help/Set-AzSecuritySqlVulnerabilityAssessmentBaseline.md index 27a396ed9794..16a9e1e7354c 100644 --- a/src/Security/Security/help/Set-AzSecuritySqlVulnerabilityAssessmentBaseline.md +++ b/src/Security/Security/help/Set-AzSecuritySqlVulnerabilityAssessmentBaseline.md @@ -16,14 +16,14 @@ Sets new SQL vulnerability assessment baseline on a specific database discards o ``` Set-AzSecuritySqlVulnerabilityAssessmentBaseline [-BaselineSet ] [-Force] -ResourceId -WorkspaceId -Server -Database [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObjectWithResourceId ``` Set-AzSecuritySqlVulnerabilityAssessmentBaseline -InputObject [-Force] -ResourceId -WorkspaceId -Server -Database - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,14 +32,14 @@ Set-AzSecuritySqlVulnerabilityAssessmentBaseline -InputObject [-Force] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId -WorkspaceResourceId [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### OnPremMachinesWithBaselineObject ``` Set-AzSecuritySqlVulnerabilityAssessmentBaseline [-BaselineSet ] [-Force] -WorkspaceId -Server -Database -ComputerName -VmUuid -AgentId - -WorkspaceResourceId [-DefaultProfile ] + -WorkspaceResourceId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -240,6 +240,21 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceId ID of the security resource that you want to invoke the command on. Supported resources are: diff --git a/src/Security/Security/help/Set-AzSecurityWorkspaceSetting.md b/src/Security/Security/help/Set-AzSecurityWorkspaceSetting.md index 51bd770ddeaf..d5545e71264a 100644 --- a/src/Security/Security/help/Set-AzSecurityWorkspaceSetting.md +++ b/src/Security/Security/help/Set-AzSecurityWorkspaceSetting.md @@ -14,7 +14,7 @@ Updates the workspace settings for the subscription. ``` Set-AzSecurityWorkspaceSetting -Name -Scope -WorkspaceId - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Scope Scope. diff --git a/src/Security/Security/help/Set-AzSqlInformationProtectionPolicy.md b/src/Security/Security/help/Set-AzSqlInformationProtectionPolicy.md index 3cb75b4dd751..827cfceffb1f 100644 --- a/src/Security/Security/help/Set-AzSqlInformationProtectionPolicy.md +++ b/src/Security/Security/help/Set-AzSqlInformationProtectionPolicy.md @@ -15,13 +15,13 @@ Sets the effective tenant SQL information protection policy. ### SQL Information Protection Policy (Default) ``` Set-AzSqlInformationProtectionPolicy -Policy [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SQL Information Protection Policy File Path ``` Set-AzSqlInformationProtectionPolicy -FilePath [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -96,6 +96,21 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Security/Security/help/Start-AzJitNetworkAccessPolicy.md b/src/Security/Security/help/Start-AzJitNetworkAccessPolicy.md index 0f635031e7df..b39b1ee8ee75 100644 --- a/src/Security/Security/help/Start-AzJitNetworkAccessPolicy.md +++ b/src/Security/Security/help/Start-AzJitNetworkAccessPolicy.md @@ -16,21 +16,21 @@ Invokes a temporary network access request. ``` Start-AzJitNetworkAccessPolicy -ResourceGroupName -Location -Name -VirtualMachine - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId ``` Start-AzJitNetworkAccessPolicy -VirtualMachine - -ResourceId [-DefaultProfile ] [-WhatIf] + -ResourceId [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject ``` Start-AzJitNetworkAccessPolicy -InputObject - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -120,6 +120,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName Resource group name. diff --git a/src/Security/Security/help/Update-AzIotSecuritySolution.md b/src/Security/Security/help/Update-AzIotSecuritySolution.md index 0c3972e4d228..8ee41022bdc1 100644 --- a/src/Security/Security/help/Update-AzIotSecuritySolution.md +++ b/src/Security/Security/help/Update-AzIotSecuritySolution.md @@ -17,7 +17,7 @@ Update one or more of the following properties in IoT security solution: tags, r Update-AzIotSecuritySolution -Name -ResourceGroupName [-Tag ] [-UserDefinedResource ] [-RecommendationsConfiguration ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceId @@ -25,7 +25,7 @@ Update-AzIotSecuritySolution -Name -ResourceGroupName [-Tag [-Tag ] [-UserDefinedResource ] [-RecommendationsConfiguration ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### InputObject @@ -33,7 +33,7 @@ Update-AzIotSecuritySolution -ResourceId [-Tag ] Update-AzIotSecuritySolution -InputObject [-Tag ] [-UserDefinedResource ] [-RecommendationsConfiguration ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -136,6 +136,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RecommendationsConfiguration Recommendations configuration. diff --git a/src/Security/Security/help/Update-AzSecurityConnector.md b/src/Security/Security/help/Update-AzSecurityConnector.md index 97d458ffc77f..e133b3640804 100644 --- a/src/Security/Security/help/Update-AzSecurityConnector.md +++ b/src/Security/Security/help/Update-AzSecurityConnector.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnector ## SYNOPSIS -Updates a security connector +Update a security connector ## SYNTAX @@ -17,7 +17,7 @@ Updates a security connector Update-AzSecurityConnector -Name -ResourceGroupName [-SubscriptionId ] [-EnvironmentData ] [-EnvironmentName ] [-Etag ] [-HierarchyIdentifier ] [-Kind ] [-Location ] [-Offering ] - [-Tag ] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-Tag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,11 +26,11 @@ Update-AzSecurityConnector -Name -ResourceGroupName [-Subscrip Update-AzSecurityConnector -InputObject [-EnvironmentData ] [-EnvironmentName ] [-Etag ] [-HierarchyIdentifier ] [-Kind ] [-Location ] [-Offering ] [-Tag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Updates a security connector +Update a security connector ## EXAMPLES @@ -220,6 +220,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. diff --git a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsOrg.md b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsOrg.md index 76fe260e1e45..f669ff4d6fa9 100644 --- a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsOrg.md +++ b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsOrg.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorAzureDevOpsOrg ## SYNOPSIS -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. ## SYNTAX @@ -16,7 +16,7 @@ Updates monitored Azure DevOps organization details. ``` Update-AzSecurityConnectorAzureDevOpsOrg -OrgName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-ActionableRemediation ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,11 +24,11 @@ Update-AzSecurityConnectorAzureDevOpsOrg -OrgName -ResourceGroupName [-ActionableRemediation ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Updates monitored Azure DevOps organization details. +Update monitored Azure DevOps organization details. ## EXAMPLES @@ -162,6 +162,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsProject.md b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsProject.md index 9263e989edc2..5dbf19033b83 100644 --- a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsProject.md +++ b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsProject.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorAzureDevOpsProject ## SYNOPSIS -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ## SYNTAX @@ -17,18 +17,18 @@ Updates a monitored Azure DevOps project resource. Update-AzSecurityConnectorAzureDevOpsProject -OrgName -ProjectName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-ActionableRemediation ] [-ParentOrgName ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzSecurityConnectorAzureDevOpsProject -InputObject [-ActionableRemediation ] [-ParentOrgName ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Updates a monitored Azure DevOps project resource. +Update a monitored Azure DevOps project resource. ## EXAMPLES @@ -180,6 +180,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The project name. diff --git a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsRepo.md b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsRepo.md index 2aa601aeb198..d7800a85410c 100644 --- a/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsRepo.md +++ b/src/Security/Security/help/Update-AzSecurityConnectorAzureDevOpsRepo.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorAzureDevOpsRepo ## SYNOPSIS -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ## SYNTAX @@ -17,7 +17,7 @@ Updates a monitored Azure DevOps repository resource. Update-AzSecurityConnectorAzureDevOpsRepo -OrgName -ProjectName -RepoName -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-ActionableRemediation ] [-ParentOrgName ] [-ParentProjectName ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,12 +25,12 @@ Update-AzSecurityConnectorAzureDevOpsRepo -OrgName -ProjectName [-ActionableRemediation ] [-ParentOrgName ] [-ParentProjectName ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Updates a monitored Azure DevOps repository resource. +Update a monitored Azure DevOps repository resource. ## EXAMPLES @@ -200,6 +200,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProjectName The project name. diff --git a/src/Security/Security/help/Update-AzSecurityConnectorDevOpsConfiguration.md b/src/Security/Security/help/Update-AzSecurityConnectorDevOpsConfiguration.md index 6b006a43dc1d..83b2fb604561 100644 --- a/src/Security/Security/help/Update-AzSecurityConnectorDevOpsConfiguration.md +++ b/src/Security/Security/help/Update-AzSecurityConnectorDevOpsConfiguration.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzSecurityConnectorDevOpsConfiguration ## SYNOPSIS -Updates a DevOps Configuration. +Update a DevOps Configuration. ## SYNTAX @@ -17,18 +17,18 @@ Updates a DevOps Configuration. Update-AzSecurityConnectorDevOpsConfiguration -ResourceGroupName -SecurityConnectorName [-SubscriptionId ] [-AuthorizationCode ] [-AutoDiscovery ] [-TopLevelInventoryList ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzSecurityConnectorDevOpsConfiguration -InputObject [-AuthorizationCode ] [-AutoDiscovery ] [-TopLevelInventoryList ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Updates a DevOps Configuration. +Update a DevOps Configuration. ## EXAMPLES @@ -150,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 index 561728740599..0e38eb22cdf8 100644 --- a/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/VMware/VMware.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -6908,9 +6908,9 @@ end { <# .Synopsis -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud .Description -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud .Example Update-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group @@ -7177,9 +7177,9 @@ end { <# .Synopsis -Create a cloud link in a private cloud +Update a cloud link in a private cloud .Description -Create a cloud link in a private cloud +Update a cloud link in a private cloud .Example Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" @@ -7736,9 +7736,9 @@ end { <# .Synopsis -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster .Description -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster .Example Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" @@ -8073,9 +8073,9 @@ end { <# .Synopsis -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud .Description -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud .Example Update-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 index d940f73d790c..3445452c0479 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareAuthorization.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud .Description -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud .Example Update-AzVMwareAuthorization -Name azps_test_authorization -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 index 0a1c52368f19..78c44dd3a217 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareCloudLink.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a cloud link in a private cloud +Update a cloud link in a private cloud .Description -Create a cloud link in a private cloud +Update a cloud link in a private cloud .Example Update-AzVMwareCloudLink -Name azps_test_cloudlink -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -LinkedCloud "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group2/providers/Microsoft.AVS/privateClouds/azps_test_cloud2/" diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 index d500729589d0..ffaa3b926a9e 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareDatastore.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster .Description -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster .Example Update-AzVMwareDatastore -ClusterName azps_test_cluster -Name azps_test_datastore -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group -NetAppVolumeId "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/azps_test_group/providers/Microsoft.NetApp/netAppAccounts/NetAppAccount1/capacityPools/CapacityPool1/volumes/NFSVol1" diff --git a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 index ac843c7ef71b..278687df2224 100644 --- a/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 +++ b/src/VMware/VMware.Autorest/exports/Update-AzVMwareGlobalReachConnection.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud .Description -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud .Example Update-AzVMwareGlobalReachConnection -Name azps_test_grc -PrivateCloudName azps_test_cloud -ResourceGroupName azps_test_group diff --git a/src/VMware/VMware.Autorest/generated/api/VMware.cs b/src/VMware/VMware.Autorest/generated/api/VMware.cs index 293f77e15e1f..f57d09a816e0 100644 --- a/src/VMware/VMware.Autorest/generated/api/VMware.cs +++ b/src/VMware/VMware.Autorest/generated/api/VMware.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware public partial class VMware { - /// Create a addon in a private cloud + /// Update a addon in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -66,7 +66,7 @@ public partial class VMware } } - /// Create a addon in a private cloud + /// Update a addon in a private cloud /// /// A addon in the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -128,7 +128,7 @@ public partial class VMware } } - /// Create a addon in a private cloud + /// Update a addon in a private cloud /// /// A addon in the private cloud /// an instance that will receive events. @@ -188,7 +188,7 @@ public partial class VMware } } - /// Create a addon in a private cloud + /// Update a addon in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -1506,7 +1506,7 @@ public partial class VMware } } - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -1558,7 +1558,7 @@ public partial class VMware } } - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// /// An ExpressRoute Circuit Authorization /// a delegate that is called when the remote service returns 200 (OK). @@ -1620,7 +1620,7 @@ public partial class VMware } } - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// /// An ExpressRoute Circuit Authorization /// an instance that will receive events. @@ -1680,7 +1680,7 @@ public partial class VMware } } - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -3000,7 +3000,7 @@ public partial class VMware } } - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -3052,7 +3052,7 @@ public partial class VMware } } - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// /// A cloud link in the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -3114,7 +3114,7 @@ public partial class VMware } } - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// /// A cloud link in the private cloud /// an instance that will receive events. @@ -3174,7 +3174,7 @@ public partial class VMware } } - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -4492,7 +4492,7 @@ public partial class VMware } } - /// Create a cluster in a private cloud + /// Update a cluster in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -4544,7 +4544,7 @@ public partial class VMware } } - /// Create a cluster in a private cloud + /// Update a cluster in a private cloud /// /// A cluster in the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -4606,7 +4606,7 @@ public partial class VMware } } - /// Create a cluster in a private cloud + /// Update a cluster in a private cloud /// /// A cluster in the private cloud /// an instance that will receive events. @@ -4666,7 +4666,7 @@ public partial class VMware } } - /// Create a cluster in a private cloud + /// Update a cluster in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -6873,7 +6873,7 @@ public partial class VMware } } - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -6928,7 +6928,7 @@ public partial class VMware } } - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// A datastore in a private cloud cluster /// a delegate that is called when the remote service returns 200 (OK). @@ -6993,7 +6993,7 @@ public partial class VMware } } - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// A datastore in a private cloud cluster /// an instance that will receive events. @@ -7056,7 +7056,7 @@ public partial class VMware } } - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -8420,7 +8420,7 @@ public partial class VMware } } - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -8472,7 +8472,7 @@ public partial class VMware } } - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// /// A global reach connection in the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -8534,7 +8534,7 @@ public partial class VMware } } - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// /// A global reach connection in the private cloud /// an instance that will receive events. @@ -8594,7 +8594,7 @@ public partial class VMware } } - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -9920,7 +9920,7 @@ public partial class VMware } } - /// Create an activation key for on-premises HCX site + /// Update an activation key for on-premises HCX site /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -9973,7 +9973,7 @@ public partial class VMware } } - /// Create an activation key for on-premises HCX site + /// Update an activation key for on-premises HCX site /// /// The HCX Enterprise Site /// a delegate that is called when the remote service returns 200 (OK). @@ -10036,7 +10036,7 @@ public partial class VMware } } - /// Create an activation key for on-premises HCX site + /// Update an activation key for on-premises HCX site /// /// The HCX Enterprise Site /// an instance that will receive events. @@ -10096,7 +10096,7 @@ public partial class VMware } } - /// Create an activation key for on-premises HCX site + /// Update an activation key for on-premises HCX site /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -12088,7 +12088,7 @@ public partial class VMware } } - /// Create a placement policy in a private cloud cluster + /// Update a placement policy in a private cloud cluster /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -12143,7 +12143,7 @@ public partial class VMware } } - /// Create a placement policy in a private cloud cluster + /// Update a placement policy in a private cloud cluster /// /// A placement policy in the private cloud cluster /// a delegate that is called when the remote service returns 200 (OK). @@ -12208,7 +12208,7 @@ public partial class VMware } } - /// Create a placement policy in a private cloud cluster + /// Update a placement policy in a private cloud cluster /// /// A placement policy in the private cloud cluster /// an instance that will receive events. @@ -12271,7 +12271,7 @@ public partial class VMware } } - /// Create a placement policy in a private cloud cluster + /// Update a placement policy in a private cloud cluster /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -14199,7 +14199,7 @@ public partial class VMware } } - /// Create a private cloud + /// Update a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -14248,7 +14248,7 @@ public partial class VMware } } - /// Create a private cloud + /// Update a private cloud /// /// The private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -14307,7 +14307,7 @@ public partial class VMware } } - /// Create a private cloud + /// Update a private cloud /// /// The private cloud /// an instance that will receive events. @@ -14364,7 +14364,7 @@ public partial class VMware } } - /// Create a private cloud + /// Update a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// Name of the private cloud @@ -17691,7 +17691,7 @@ public partial class VMware } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -17740,7 +17740,7 @@ public partial class VMware } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud /// /// /// a delegate that is called when the remote service returns 200 (OK). @@ -17799,7 +17799,7 @@ public partial class VMware } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud /// /// /// an instance that will receive events. @@ -17856,7 +17856,7 @@ public partial class VMware } /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -18040,7 +18040,7 @@ public partial class VMware } } - /// Create a script execution in a private cloud + /// Update a script execution in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. @@ -18092,7 +18092,7 @@ public partial class VMware } } - /// Create a script execution in a private cloud + /// Update a script execution in a private cloud /// /// A script running in the private cloud /// a delegate that is called when the remote service returns 200 (OK). @@ -18154,7 +18154,7 @@ public partial class VMware } } - /// Create a script execution in a private cloud + /// Update a script execution in a private cloud /// /// A script running in the private cloud /// an instance that will receive events. @@ -18214,7 +18214,7 @@ public partial class VMware } } - /// Create a script execution in a private cloud + /// Update a script execution in a private cloud /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the private cloud. diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs index 6d2deec702a6..1542c1d3bc40 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_Get.cs @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs index 8430da53f12a..a5b99144747b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs index 72b980ec3be3..06d34ab21d6e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_GetViaIdentityPrivateCloud.cs @@ -194,11 +194,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs index 78fc0c10c017..6589cb5e8760 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAddon_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs index 4f04c89f55fb..ef5a3fb2edf3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs index 358a3b470197..c40ebcb58fa2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs index 73ca5e54312c..0de93f274bd4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs index 6e5857334abc..a26bb591214c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareAuthorization_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs index b2b85562b8cb..8389921a021b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs index a1d0250c1cfc..d4437dd2e616 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs index ee4ed8ab1a34..ecc0f34433f1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs index 34301cb8f5e2..7c5c2eb55287 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCloudLink_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs index 79e0911c5cca..c06dd946ac43 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareClusterZone_List.cs @@ -231,11 +231,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs index 2249e4602349..fe9a11cff28b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs index 6cc6ff36bfba..cbf8e2858bf3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs index c60ee7cb8aae..f7d99097e7ca 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs index 531434509e99..a750012d2e3c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareCluster_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs index 5622899b15cd..5fdf10719252 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_Get.cs @@ -246,11 +246,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs index 91c3809fb7b2..800b53829972 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs index 3f44e4b01db2..3ab06673d0eb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityCluster.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs index 31733f07f543..ad48ed982f9b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_GetViaIdentityPrivateCloud.cs @@ -207,11 +207,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs index 0226c67c466e..92b67d0a2cbc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareDatastore_List.cs @@ -237,11 +237,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs index b623ee6b58a4..5fdf1cee9c4d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs index 09131a9a68a2..8019d34f95f4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs index 6ae92c8654d8..6c02557c5d4a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs index c8177d83e947..fe34dcda99d2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareGlobalReachConnection_List.cs @@ -223,11 +223,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs index d0abeab4bde6..aa49ac5f92b1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareOperation_List.cs @@ -177,11 +177,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs index 2147a0079d34..b1135fbd3005 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_Get.cs @@ -248,11 +248,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs index 0ce071021e28..b4acaff65543 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs index 877eb1a2877c..c77cce48d580 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityCluster.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs index 6d2ed8a18ee1..d1390d7a6e1b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_GetViaIdentityPrivateCloud.cs @@ -209,11 +209,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs index 0f7c8ebdad7d..21286b9877d0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePlacementPolicy_List.cs @@ -237,11 +237,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs index 4d03be732c1f..a0c4ab767f8d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloudAdminCredential_List.cs @@ -217,11 +217,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs index 361389e2de70..1ec219a45b10 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_Get.cs @@ -218,11 +218,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs index 550ddc4eb8be..0f0399e112ef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs index b7b198156ea4..761fe1a4d037 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List.cs @@ -209,11 +209,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs index b981e6c57f26..3a7607a6c84b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwarePrivateCloud_List1.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs index cb2d855b9c05..ba8c0728efde 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_Get.cs @@ -249,11 +249,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs index 2743d2fb7e6d..38881dafcf91 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentity.cs @@ -181,11 +181,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs index 85bd71cf4611..04f12576b766 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityPrivateCloud.cs @@ -210,11 +210,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs index a597446f2d75..9ba6a7b3bc10 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_GetViaIdentityScriptPackage.cs @@ -196,11 +196,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs index 1b232001d10d..6e014627a7db 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptCmdlet_List.cs @@ -11,7 +11,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using System; /// - /// List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud + /// List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud /// /// /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets" @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzVMwareScriptCmdlet_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IScriptCmdlet))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List script cmdlet resources available for a private cloud to create a script execution resource on a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"List script cmdlet resources available for a private cloud to List a script execution resource on a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptPackages/{scriptPackageName}/scriptCmdlets", ApiVersion = "2023-03-01")] public partial class GetAzVMwareScriptCmdlet_List : global::System.Management.Automation.PSCmdlet, @@ -240,11 +240,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs index 121a0bc4db45..0e5ad9b9e0b1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_Get.cs @@ -248,11 +248,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs index 03d47c1b6be7..db14605c458d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentity.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs index 116566214a78..d7b206424e06 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecutionLog_GetViaIdentityPrivateCloud.cs @@ -209,11 +209,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs index acccd9251ec7..41c045159dd6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_Get.cs @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs index 93b47b47e2d5..1a2cfbdb291f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs index 00b38442c679..f41db84bdb00 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_GetViaIdentityPrivateCloud.cs @@ -194,11 +194,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs index 6de88e9f8d57..a6c6ec2bef52 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptExecution_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs index 0205c9ca26de..7415ac2bec7e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_Get.cs @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs index 06754b291d2f..edf41dc7c020 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs index fc8df64d5514..10d3a21e5d26 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_GetViaIdentityPrivateCloud.cs @@ -194,11 +194,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs index 84e6daabcc06..41b95ce80b3a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareScriptPackage_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs index c642d5297e91..919d5e3ac642 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_Get.cs @@ -246,11 +246,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs index 457655c3f52b..563afe2b36de 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentity.cs @@ -178,11 +178,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs index be9e156e1b41..e3809cd9189a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityCluster.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs index 72cdd1b6d65a..d11cf76ceb23 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_GetViaIdentityPrivateCloud.cs @@ -207,11 +207,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs index bfee216b340b..8b5c8f6ea4de 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareVirtualMachine_List.cs @@ -237,11 +237,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs index 5b2e57cbd918..02d43851884a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs index ed9258dd3390..1c252abc3102 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs index c6da68efd46e..082370b60cc4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_GetViaIdentityDhcpConfiguration.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs index ce731b35209c..ea74a12c28b0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDhcp_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs index 90f99be59c98..6ab844f03d05 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_Get.cs @@ -234,11 +234,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs index 6d170a952463..b75e7f9ded8e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs index e96c92b451b2..5e94a0beea34 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_GetViaIdentityPrivateCloud.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs index e9bc90246210..ae3b7ae2eebb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsService_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs index 224f366d969b..e3e16402a14c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs index 2175b3f80074..452a79792a81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs index 8f15f0e17df2..9ca64307bf22 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs index 7fa3d53e83e7..c70554dd7a05 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkDnsZone_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs index 3b4c84d0d62b..7ea13f3dfdd9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs index 4a4bafeb0128..933fc709e3f4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs index efab47ea636e..57c4a9c6e455 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs index 3fc4740555f4..e1e10142e5ef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkGateway_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs index ff287ab1db7c..d3f2e346bfda 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_Get.cs @@ -234,11 +234,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs index 6f8ba5c8cc34..d82023e6483d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs index 89e860781aba..d4e0b405daaf 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_GetViaIdentityPrivateCloud.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs index ee64427b74a6..62943ce81df1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPortMirroring_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs index 53d20aa98eb0..fac5dc0ebd59 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_Get.cs @@ -234,11 +234,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs index 0fa50a2886f8..7644f0f43a77 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs index 4441d708902e..8d2460ac14d3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_GetViaIdentityPrivateCloud.cs @@ -195,11 +195,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs index 0c6e5efaf868..17c489a0e556 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkPublicIP_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs index 903e5a3ff466..c37c121b9e8e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs index f276d9dc43a2..e7f455b89337 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs index e569f505da16..8976a11383ec 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs index 8bee4c6a81b2..12db0b1eeb25 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkSegment_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs index a8a35f56e5d3..45ed9700cd3a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs index 43b6d97a91ca..6ed15099199e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs index f0c3b857a030..9aa9a338739e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs index ee1426f6738a..d7d429b681ff 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVMGroup_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs index d292c76a2736..54ce43c6adb7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_Get.cs @@ -232,11 +232,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs index 44c0ce96fd1d..e39e090679c6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs index 2e15cfe023f6..80432ac28704 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_GetViaIdentityPrivateCloud.cs @@ -193,11 +193,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs index 1cf8ccf1bdb5..9d00dd89abf1 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetworkVM_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs index efddd39ca6c6..7753988bc34c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_Get.cs @@ -218,11 +218,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs index 9cf8ccdc7d16..c4050ceecafb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_GetViaIdentity.cs @@ -179,11 +179,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs index ac72e582bc52..3292967b735d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/GetAzVMwareWorkloadNetwork_List.cs @@ -224,11 +224,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs index 3f94ba8b61ee..088dfef19ba5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictExpanded.cs @@ -288,11 +288,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs index 517e7abe0f81..9d4a496e711f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityClusterExpanded.cs @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs index e48f234355cd..00b1debeb8fc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityExpanded.cs @@ -218,11 +218,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs index 7b1cf35407a8..9ae88f11f411 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/LockAzVMwareVirtualMachineMovement_RestrictViaIdentityPrivateCloudExpanded.cs @@ -248,11 +248,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs index b1a4837d4c6f..d177f9ad13a4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateExpanded.cs @@ -285,11 +285,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs index fc3683b4deb6..7f61823aebee 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityExpanded.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs index 0370654f2a20..c4f275c27f68 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAddon_CreateViaIdentityPrivateCloudExpanded.cs @@ -243,11 +243,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs index 47d4aa9e7e69..d72ef78a6ab4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateExpanded.cs @@ -273,11 +273,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs index f332791b4435..0e037174e641 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityExpanded.cs @@ -215,11 +215,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs index 09412b1c10ec..ca60702f65e8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareAuthorization_CreateViaIdentityPrivateCloudExpanded.cs @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs index f6fe1846bf60..3d02635071fd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateExpanded.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs index 380f2243d6d0..da002a264170 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityExpanded.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs index f7a1e5698f4d..e49693428d7f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCloudLink_CreateViaIdentityPrivateCloudExpanded.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs index ea979f33c499..444d2ec1b765 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateExpanded.cs @@ -307,11 +307,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs index ff98800772d1..ffbcfe194cce 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityExpanded.cs @@ -249,11 +249,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs index ad736ba7f50b..3c986ab3bac0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareCluster_CreateViaIdentityPrivateCloudExpanded.cs @@ -267,11 +267,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs index edfd78964a55..19d307856c62 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateExpanded.cs @@ -335,11 +335,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs index b52fc4b7004e..066aa15810a3 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityClusterExpanded.cs @@ -278,11 +278,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs index cabd6e225414..d9c8f5e91179 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityExpanded.cs @@ -262,11 +262,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs index 2dcc2952212e..bbc54fa0403f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareDatastore_CreateViaIdentityPrivateCloudExpanded.cs @@ -295,11 +295,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs index e3f24cc52b1d..2f37608f3277 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateExpanded.cs @@ -312,11 +312,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs index bf04531f88b8..92208f34bb63 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityExpanded.cs @@ -256,11 +256,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs index 97f76756feb7..64b01d921c44 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareGlobalReachConnection_CreateViaIdentityPrivateCloudExpanded.cs @@ -272,11 +272,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs index 40639bf856f9..f2100c3b8d03 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateExpanded.cs @@ -301,11 +301,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs index 2013c88feef5..3f17ec9f4764 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityClusterExpanded.cs @@ -246,11 +246,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs index 92e734ed412d..3944cf368c3c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityExpanded.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs index 6638fb64ea4e..d100f56fb4ed 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePlacementPolicy_CreateViaIdentityPrivateCloudExpanded.cs @@ -261,11 +261,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs index 1990ca9ff1b1..300ec1068251 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_Rotate.cs @@ -258,11 +258,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs index c680c6e208ce..5d1c26b796f9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudNsxtPassword_RotateViaIdentity.cs @@ -216,11 +216,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs index de03d90f27aa..1478988e3a2e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_Rotate.cs @@ -258,11 +258,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs index 0bec26c7aefd..84ad666cec42 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloudVcenterPassword_RotateViaIdentity.cs @@ -218,11 +218,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs index ec3498b32120..9409a9dc4055 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwarePrivateCloud_CreateExpanded.cs @@ -486,11 +486,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs index bf9bf9d1625f..886034c5de2a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateExpanded.cs @@ -370,11 +370,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs index 43365349ed4c..b867c8302aa5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityExpanded.cs @@ -312,11 +312,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs index 02fcef038b1a..93d8bdf3718f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareScriptExecution_CreateViaIdentityPrivateCloudExpanded.cs @@ -330,11 +330,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs index 155f6276d800..b1f51f4fd43f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateExpanded.cs @@ -307,11 +307,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs index 5d740632e9c4..f76b051d8d81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityExpanded.cs @@ -252,11 +252,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs index 08473f8ec953..e0327c731a81 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDhcp_CreateViaIdentityPrivateCloudExpanded.cs @@ -267,11 +267,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs index 2bf5fe1d1cca..2f16159792cd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateExpanded.cs @@ -343,11 +343,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs index 827fd8c29c25..02c87eb996de 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityExpanded.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs index d163ba8f3d0b..f517847f344f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsService_CreateViaIdentityPrivateCloudExpanded.cs @@ -303,11 +303,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs index 14e7460514bc..0b77436a08f7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateExpanded.cs @@ -341,11 +341,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs index 6b8593fb9517..c2702ddd7484 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityExpanded.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs index 2e11275f54ad..d594868942d7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkDnsZone_CreateViaIdentityPrivateCloudExpanded.cs @@ -301,11 +301,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs index ec3ab39b1585..e366d6021aec 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateExpanded.cs @@ -331,11 +331,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs index 16e28fda918a..6f3a34a55ca0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityExpanded.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs index ef5430d1fa8e..a499532c1558 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPortMirroring_CreateViaIdentityPrivateCloudExpanded.cs @@ -291,11 +291,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs index 8b40a82272b6..6cf91abae700 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateExpanded.cs @@ -297,11 +297,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs index c056fb7d2690..62b3968bc819 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityExpanded.cs @@ -240,11 +240,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs index 131e148fb6fd..79029854cd36 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkPublicIP_CreateViaIdentityPrivateCloudExpanded.cs @@ -257,11 +257,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs index 66675adffd6b..db9f18150d26 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateExpanded.cs @@ -329,11 +329,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs index 1c5260d98762..3d6111955bd6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityExpanded.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs index b7f5f9c8c31b..12a70fea0066 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkSegment_CreateViaIdentityPrivateCloudExpanded.cs @@ -289,11 +289,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs index 50e0bfc0fbca..25ab7ac923bb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateExpanded.cs @@ -307,11 +307,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs index 3fad88e0a05b..e03879d815e0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityExpanded.cs @@ -252,11 +252,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs index 4885a721c712..65f31ade16dc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/NewAzVMwareWorkloadNetworkVMGroup_CreateViaIdentityPrivateCloudExpanded.cs @@ -267,11 +267,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs index b846c375e655..4d903ec21d9d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_Delete.cs @@ -285,11 +285,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs index 3aa9ef4a7b49..cf17fd669511 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs index eae33dbf0de0..18ba94d981e4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAddon_DeleteViaIdentityPrivateCloud.cs @@ -243,11 +243,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs index af4e85e22a4f..32957fe23db8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs index 3f28a65a7633..b1dae6090b16 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs index 19a1276b8f28..71cb986aaa76 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareAuthorization_DeleteViaIdentityPrivateCloud.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs index 1aac0d83dd2b..a5e128f8865a 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs index eb73751b264b..01ffbd26b1df 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs index 1dd1a4321019..3b64943d5a9d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCloudLink_DeleteViaIdentityPrivateCloud.cs @@ -242,11 +242,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs index 63e3ee55f85e..36a6ec251824 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs index a5fd48dfc1cc..75a2a1e186eb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs index d4faeecab03c..015f45a4d07b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareCluster_DeleteViaIdentityPrivateCloud.cs @@ -242,11 +242,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs index 6cfaa18824f2..322140063e2f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_Delete.cs @@ -299,11 +299,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs index 2b7992960255..63b6282cb6f0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs index 5aab6dd3831e..b2cf4d6ddca7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityCluster.cs @@ -242,11 +242,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs index baa59ed05cf9..8d7a1bf13f05 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareDatastore_DeleteViaIdentityPrivateCloud.cs @@ -257,11 +257,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs index 4efda6f218ef..1eb5f602b528 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs index 5570e56d5cdd..e00cd8f671cc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs index a17d3fdd677e..4fca5abbab28 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareGlobalReachConnection_DeleteViaIdentityPrivateCloud.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs index 4ece1b94b41f..49e76f357c12 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_Delete.cs @@ -301,11 +301,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs index fb8eb763e0e0..676fb957aaed 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentity.cs @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs index f2f8da18edf8..b59500249ca6 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityCluster.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs index 678a635c3bee..23cb33fb77bb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePlacementPolicy_DeleteViaIdentityPrivateCloud.cs @@ -261,11 +261,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs index d5bec21072e2..96c71d6153d2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_Delete.cs @@ -270,11 +270,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs index b29e4f9e9085..4c93a0941fce 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwarePrivateCloud_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs index 112a75136611..3a72de0ae2e8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_Delete.cs @@ -285,11 +285,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs index 71461adb9255..3197d88fbe62 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs index a72c8213d15e..288dd165e5d0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareScriptExecution_DeleteViaIdentityPrivateCloud.cs @@ -245,11 +245,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs index 8f300f2202eb..8442e0372e6d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs index db577e09fa6e..1b2ebb2651bf 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs index b0e7068f95c9..e1960cf7720f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDhcp_DeleteViaIdentityPrivateCloud.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs index 2736f694ed49..b024519a0693 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_Delete.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs index 9898465ac284..f22f35bed3b9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentity.cs @@ -229,11 +229,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs index b3c01a2fdde9..3eafa2a21529 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsService_DeleteViaIdentityDnsService.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs index 0da56ba44791..8a19fdc9f2ab 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs index 9b15d0ccbcb3..0980171bae8f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs index 4b3387fca9a9..7146d88df8ef 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkDnsZone_DeleteViaIdentityDnsZone.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs index 882c975f10f0..c12e15b93564 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_Delete.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs index 84a508749767..184941ae6e31 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentity.cs @@ -229,11 +229,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs index 555bf1830414..c986f4b685d2 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPortMirroring_DeleteViaIdentityPortMirroringProfile.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs index 6bc729110a74..ed6bde98c2f9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_Delete.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs index 5d826ca31ea9..b5689bfd074c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs index 832a33c223fb..8502da8213a4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkPublicIP_DeleteViaIdentityPublicIP.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs index 582164dbd8d7..9443e9e3b200 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs index 6d02e87bcf56..5662d86d416d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs index 35c0ec30444c..7054446d37bd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkSegment_DeleteViaIdentityPrivateCloud.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs index 6b04a1a28989..ac1463ec9094 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_Delete.cs @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs index 16f7bf079d35..001d49b18f05 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentity.cs @@ -227,11 +227,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs index 3e27ce346711..7590ff4953fe 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/RemoveAzVMwareWorkloadNetworkVMGroup_DeleteViaIdentityVMGroup.cs @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs index f28316fce2d8..bfc626f791a4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationQuotaAvailability_Check.cs @@ -203,11 +203,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs index a43af7f0516a..b9540228d0fc 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/TestAzVMwareLocationTrialAvailability_CheckExpanded.cs @@ -217,11 +217,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs index d68d92ad182b..61db6d13fa61 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -273,11 +273,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -469,7 +477,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _authorizationBody = await this.Client.AuthorizationsGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.AuthorizationsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs index 3ec1eee1bdb4..52923c90f714 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -215,11 +215,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -413,7 +421,7 @@ protected override void ProcessRecord() { _authorizationBody = await this.Client.AuthorizationsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdateViaIdentity(InputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.AuthorizationsCreateOrUpdateViaIdentity(InputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -436,7 +444,7 @@ protected override void ProcessRecord() } _authorizationBody = await this.Client.AuthorizationsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.AuthorizationsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.AuthorizationName ?? null, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs index ea187bb60aaa..e1c45112a565 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create an ExpressRoute Circuit Authorization in a private cloud + /// Update an ExpressRoute Circuit Authorization in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/authorizations/{authorizationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IExpressRouteAuthorization))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create an ExpressRoute Circuit Authorization in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update an ExpressRoute Circuit Authorization in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareAuthorization_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -233,11 +233,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -432,7 +440,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/authorizations/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _authorizationBody = await this.Client.AuthorizationsGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.AuthorizationsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -451,7 +459,7 @@ protected override void ProcessRecord() } _authorizationBody = await this.Client.AuthorizationsGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_authorizationBody(); - await this.Client.AuthorizationsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.AuthorizationsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _authorizationBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs index 07a004fc743f..4aed3a337908 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -284,11 +284,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -480,7 +488,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.CloudLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs index 34acae5d07c9..bd0a89ecb662 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -226,11 +226,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -424,7 +432,7 @@ protected override void ProcessRecord() { _cloudLinkBody = await this.Client.CloudLinksGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdateViaIdentity(InputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.CloudLinksCreateOrUpdateViaIdentity(InputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -447,7 +455,7 @@ protected override void ProcessRecord() } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.CloudLinksCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.CloudLinkName ?? null, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs index 1b60cc88c420..05650a53a1eb 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a cloud link in a private cloud + /// Update a cloud link in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/cloudLinks/{cloudLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.ICloudLink))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a cloud link in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a cloud link in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareCloudLink_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -244,11 +244,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -443,7 +451,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/cloudLinks/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _cloudLinkBody = await this.Client.CloudLinksGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.CloudLinksCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -462,7 +470,7 @@ protected override void ProcessRecord() } _cloudLinkBody = await this.Client.CloudLinksGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_cloudLinkBody(); - await this.Client.CloudLinksCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.CloudLinksCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _cloudLinkBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs index 1a4b7a8fe8d9..5df1d1c44f98 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateExpanded.cs @@ -296,11 +296,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs index e1d78a8ee771..3c3ae9ccff1e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityExpanded.cs @@ -238,11 +238,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs index 12a0d7ee8584..d686852e883c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareCluster_UpdateViaIdentityPrivateCloudExpanded.cs @@ -256,11 +256,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs index 1285aaf94cf4..a197391aa482 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -335,11 +335,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -531,7 +539,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _datastoreBody = await this.Client.DatastoresGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs index 83d3043ecea1..90989d28360d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityClusterExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityClusterExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -280,11 +280,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -479,7 +487,7 @@ protected override void ProcessRecord() this.ClusterInputObject.Id += $"/datastores/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(ClusterInputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(ClusterInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdateViaIdentity(ClusterInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -502,7 +510,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdate(ClusterInputObject.SubscriptionId ?? null, ClusterInputObject.ResourceGroupName ?? null, ClusterInputObject.PrivateCloudName ?? null, ClusterInputObject.ClusterName ?? null, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs index 03fd8b4ab874..680498f8a24c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -262,11 +262,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -460,7 +468,7 @@ protected override void ProcessRecord() { _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(InputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdateViaIdentity(InputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -487,7 +495,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.ClusterName ?? null, InputObject.DatastoreName ?? null, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs index b692c67dbc37..4e9a78303c54 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a datastore in a private cloud cluster + /// Update a datastore in a private cloud cluster /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/clusters/{clusterName}/datastores/{datastoreName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IDatastore))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a datastore in a private cloud cluster")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a datastore in a private cloud cluster")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareDatastore_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -295,11 +295,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -494,7 +502,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/clusters/{(global::System.Uri.EscapeDataString(this.ClusterName.ToString()))}/datastores/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _datastoreBody = await this.Client.DatastoresGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -513,7 +521,7 @@ protected override void ProcessRecord() } _datastoreBody = await this.Client.DatastoresGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, this, Pipeline); this.Update_datastoreBody(); - await this.Client.DatastoresCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.DatastoresCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, ClusterName, Name, _datastoreBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs index cd9ab525132d..8cf0b2c00186 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -312,11 +312,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -508,7 +516,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.GlobalReachConnectionsCreateOrUpdate(SubscriptionId, ResourceGroupName, PrivateCloudName, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.UndeclaredResponseException urexception) diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs index 66ef9865b25f..949e03af0979 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -256,11 +256,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -454,7 +462,7 @@ protected override void ProcessRecord() { _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetViaIdentityWithResult(InputObject.Id, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(InputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(InputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -477,7 +485,7 @@ protected override void ProcessRecord() } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.GlobalReachConnectionsCreateOrUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PrivateCloudName ?? null, InputObject.GlobalReachConnectionName ?? null, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs index 021578d8618a..8a7b0b4167b4 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded.cs @@ -10,14 +10,14 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.VMware.Cmdlets using Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Cmdlets; using System; - /// Create a global reach connection in a private cloud + /// Update a global reach connection in a private cloud /// /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/globalReachConnections/{globalReachConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.VMware.Models.IGlobalReachConnection))] - [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Create a global reach connection in a private cloud")] + [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Description(@"Update a global reach connection in a private cloud")] [global::Microsoft.Azure.PowerShell.Cmdlets.VMware.Generated] public partial class UpdateAzVMwareGlobalReachConnection_UpdateViaIdentityPrivateCloudExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener, @@ -272,11 +272,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } @@ -471,7 +479,7 @@ protected override void ProcessRecord() this.PrivateCloudInputObject.Id += $"/globalReachConnections/{(global::System.Uri.EscapeDataString(this.Name.ToString()))}"; _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetViaIdentityWithResult(PrivateCloudInputObject.Id, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.GlobalReachConnectionsCreateOrUpdateViaIdentity(PrivateCloudInputObject.Id, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } else { @@ -490,7 +498,7 @@ protected override void ProcessRecord() } _globalReachConnectionBody = await this.Client.GlobalReachConnectionsGetWithResult(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, this, Pipeline); this.Update_globalReachConnectionBody(); - await this.Client.GlobalReachConnectionsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); + await this.Client.GlobalReachConnectionsCreateOrUpdate(PrivateCloudInputObject.SubscriptionId ?? null, PrivateCloudInputObject.ResourceGroupName ?? null, PrivateCloudInputObject.PrivateCloudName ?? null, Name, _globalReachConnectionBody, onOk, onDefault, this, Pipeline, Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.SerializationMode.IncludeUpdate); } await ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.VMware.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs index c8b69a5a7fdd..3fd380d3970f 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateExpanded.cs @@ -350,11 +350,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs index a54a11dc14c8..32acdf168190 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityClusterExpanded.cs @@ -295,11 +295,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs index f94457114b28..c70907e415dd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityExpanded.cs @@ -275,11 +275,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs index d944ca537795..e7cddb19d7a5 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePlacementPolicy_UpdateViaIdentityPrivateCloudExpanded.cs @@ -310,11 +310,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs index 45b8f0031c25..dbf049508f1c 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateExpanded.cs @@ -393,11 +393,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs index dae11bef4370..35b83db319a8 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwarePrivateCloud_UpdateViaIdentityExpanded.cs @@ -350,11 +350,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs index 819623953fa2..5cd91de82661 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateExpanded.cs @@ -307,11 +307,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs index 199c48ba15aa..5f43f7019752 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityExpanded.cs @@ -252,11 +252,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs index 6305394bbcd8..8de6aabd6a78 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDhcp_UpdateViaIdentityPrivateCloudExpanded.cs @@ -267,11 +267,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs index 00b6f28e4f5c..c7e9df8d3f29 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateExpanded.cs @@ -343,11 +343,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs index 0df9ad3c445b..97103c1ad9a9 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityExpanded.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs index 15167ed159d7..b1433453b49d 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsService_UpdateViaIdentityPrivateCloudExpanded.cs @@ -303,11 +303,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs index 9ce646c17c9f..ab5a243b278b 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateExpanded.cs @@ -341,11 +341,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs index 51cb1394cf63..044a472ce812 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityExpanded.cs @@ -286,11 +286,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs index 9fd11595251f..aff8c0ff91c0 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkDnsZone_UpdateViaIdentityPrivateCloudExpanded.cs @@ -301,11 +301,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs index 9563cb89dab2..7e0cce955a02 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateExpanded.cs @@ -333,11 +333,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs index cbb57e3b1efe..c0300be65d5e 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityExpanded.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs index 9c71bb92e02b..00b002e64837 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkPortMirroring_UpdateViaIdentityPrivateCloudExpanded.cs @@ -291,11 +291,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs index 4a1a3bc81393..d4e6ff3b71bf 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateExpanded.cs @@ -329,11 +329,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs index 5e097b283940..c3903a9e4ddd 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityExpanded.cs @@ -274,11 +274,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs index c39e5a07f294..4acdb7e9bd97 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkSegment_UpdateViaIdentityPrivateCloudExpanded.cs @@ -289,11 +289,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs index f0497a75800c..823bb0349fb7 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateExpanded.cs @@ -307,11 +307,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs index 074925b1a43e..bd2b7bbb60da 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityExpanded.cs @@ -252,11 +252,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs index 7446223f3dfe..c32c83c1ad46 100644 --- a/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs +++ b/src/VMware/VMware.Autorest/generated/cmdlets/UpdateAzVMwareWorkloadNetworkVMGroup_UpdateViaIdentityPrivateCloudExpanded.cs @@ -267,11 +267,19 @@ protected override void EndProcessing() var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.VMware.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); if (telemetryInfo != null) { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); telemetryInfo.TryGetValue("InvocationName", out var invocationName); - if (!string.IsNullOrEmpty(sanitizedProperties)) + if (showSecretsWarning == "true") { - WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } } } } diff --git a/src/VMware/VMware.Autorest/help/Az.VMware.md b/src/VMware/VMware.Autorest/help/Az.VMware.md index 604f28e37ac2..397a4fadd728 100644 --- a/src/VMware/VMware.Autorest/help/Az.VMware.md +++ b/src/VMware/VMware.Autorest/help/Az.VMware.md @@ -129,19 +129,19 @@ Return quota for subscription by region Return trial status for subscription by region ### [Update-AzVMwareAuthorization](Update-AzVMwareAuthorization.md) -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud ### [Update-AzVMwareCloudLink](Update-AzVMwareCloudLink.md) -Create a cloud link in a private cloud +Update a cloud link in a private cloud ### [Update-AzVMwareCluster](Update-AzVMwareCluster.md) Update a cluster in a private cloud ### [Update-AzVMwareDatastore](Update-AzVMwareDatastore.md) -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster ### [Update-AzVMwareGlobalReachConnection](Update-AzVMwareGlobalReachConnection.md) -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud ### [Update-AzVMwarePlacementPolicy](Update-AzVMwarePlacementPolicy.md) Update a placement policy in a private cloud cluster diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md index ccda2fed9125..049bb6271980 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareAuthorization ## SYNOPSIS -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud ## SYNTAX @@ -32,7 +32,7 @@ Update-AzVMwareAuthorization -Name -PrivateCloudInputObject -PrivateCloudInputObject -Name -PrivateCloudInput ``` ## DESCRIPTION -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster ## EXAMPLES diff --git a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md index c8d1f3de9b63..c09f0a3e33e4 100644 --- a/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware.Autorest/help/Update-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareGlobalReachConnection ## SYNOPSIS -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud ## SYNTAX @@ -35,7 +35,7 @@ Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 0.6.1 * Introduced secrets detection feature to safeguard sensitive data. diff --git a/src/VMware/VMware/help/Az.VMware.md b/src/VMware/VMware/help/Az.VMware.md index 3064d0a091bd..62513c95543c 100644 --- a/src/VMware/VMware/help/Az.VMware.md +++ b/src/VMware/VMware/help/Az.VMware.md @@ -129,19 +129,19 @@ Return quota for subscription by region Return trial status for subscription by region ### [Update-AzVMwareAuthorization](Update-AzVMwareAuthorization.md) -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud ### [Update-AzVMwareCloudLink](Update-AzVMwareCloudLink.md) -Create a cloud link in a private cloud +Update a cloud link in a private cloud ### [Update-AzVMwareCluster](Update-AzVMwareCluster.md) Update a cluster in a private cloud ### [Update-AzVMwareDatastore](Update-AzVMwareDatastore.md) -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster ### [Update-AzVMwareGlobalReachConnection](Update-AzVMwareGlobalReachConnection.md) -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud ### [Update-AzVMwarePlacementPolicy](Update-AzVMwarePlacementPolicy.md) Update a placement policy in a private cloud cluster diff --git a/src/VMware/VMware/help/Get-AzVMwareAddon.md b/src/VMware/VMware/help/Get-AzVMwareAddon.md index e60678e2befe..dd7d30c5ad7d 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Get-AzVMwareAddon.md @@ -15,19 +15,19 @@ Get an addon by name in a private cloud ### List (Default) ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - -AddonType [-DefaultProfile ] [] + -AddonType [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAddon -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -125,6 +125,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md index 7740f0d8f9fc..edca9b5bbca9 100644 --- a/src/VMware/VMware/help/Get-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Get-AzVMwareAuthorization.md @@ -15,26 +15,26 @@ Get an ExpressRoute Circuit Authorization by name in a private cloud ### List (Default) ``` Get-AzVMwareAuthorization -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareAuthorization -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md index ec1fdff8928b..b5ffe1ebb2c6 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Get-AzVMwareCloudLink.md @@ -15,26 +15,26 @@ Get an cloud link by name in a private cloud ### List (Default) ``` Get-AzVMwareCloudLink -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCloudLink -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareCluster.md b/src/VMware/VMware/help/Get-AzVMwareCluster.md index 83085a0a2f08..bd59d7aaf50d 100644 --- a/src/VMware/VMware/help/Get-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Get-AzVMwareCluster.md @@ -15,26 +15,26 @@ Get a cluster by name in a private cloud ### List (Default) ``` Get-AzVMwareCluster -PrivateCloudName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareCluster -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md index 3d4627b39453..a474861f3ce5 100644 --- a/src/VMware/VMware/help/Get-AzVMwareClusterZone.md +++ b/src/VMware/VMware/help/Get-AzVMwareClusterZone.md @@ -14,7 +14,7 @@ List hosts by zone in a cluster ``` Get-AzVMwareClusterZone -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -84,6 +84,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareDatastore.md b/src/VMware/VMware/help/Get-AzVMwareDatastore.md index 1d8b8d1fc0c5..ff620769c9e1 100644 --- a/src/VMware/VMware/help/Get-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Get-AzVMwareDatastore.md @@ -15,33 +15,33 @@ Get a datastore in a private cloud cluster ### List (Default) ``` Get-AzVMwareDatastore -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareDatastore -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md index dd5ffff3e29e..421ce6060193 100644 --- a/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Get-AzVMwareGlobalReachConnection.md @@ -15,27 +15,27 @@ Get a global reach connection by name in a private cloud ### List (Default) ``` Get-AzVMwareGlobalReachConnection -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -147,6 +147,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md index 1987191bd68a..210a7294221b 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Get-AzVMwarePlacementPolicy.md @@ -15,33 +15,33 @@ Get a placement policy by name in a private cloud cluster ### List (Default) ``` Get-AzVMwarePlacementPolicy -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwarePlacementPolicy -Name -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md index 2fdc0c938de9..e2dee200a7d8 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloud.md @@ -15,25 +15,25 @@ Get a private cloud ### List1 (Default) ``` Get-AzVMwarePrivateCloud [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### List ``` Get-AzVMwarePrivateCloud -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -128,6 +128,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md index 5317d931d4f8..81ff72a4cd97 100644 --- a/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md +++ b/src/VMware/VMware/help/Get-AzVMwarePrivateCloudAdminCredential.md @@ -14,7 +14,7 @@ List the admin credentials for the private cloud ``` Get-AzVMwarePrivateCloudAdminCredential -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md index 5941876a2077..cd75f4f80c97 100644 --- a/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md +++ b/src/VMware/VMware/help/Get-AzVMwareVirtualMachine.md @@ -15,33 +15,33 @@ Get a virtual machine by id in a private cloud cluster ### List (Default) ``` Get-AzVMwareVirtualMachine -ClusterName -PrivateCloudName -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityPrivateCloud ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudInputObject - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzVMwareVirtualMachine -ClusterName -Id -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentityCluster ``` Get-AzVMwareVirtualMachine -Id -ClusterInputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzVMwareVirtualMachine -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -184,6 +184,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareAddon.md b/src/VMware/VMware/help/New-AzVMwareAddon.md index fad4b150274b..01e39cab3a85 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddon.md +++ b/src/VMware/VMware/help/New-AzVMwareAddon.md @@ -15,7 +15,7 @@ Create or update a addon in a private cloud ``` New-AzVMwareAddon -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -99,6 +99,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property The properties of an addon resource To construct, see NOTES section for PROPERTY properties and create a hash table. diff --git a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md index 8d3204f91e41..c3eb7e865583 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonSrmPropertiesObject.md @@ -13,7 +13,7 @@ Create a in-memory object for AddonSrmProperties ## SYNTAX ``` -New-AzVMwareAddonSrmPropertiesObject -LicenseKey +New-AzVMwareAddonSrmPropertiesObject -LicenseKey [-ProgressAction ] [] ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). diff --git a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md index 0b182014a4ec..d94621c71b12 100644 --- a/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareAddonVrPropertiesObject.md @@ -13,7 +13,7 @@ Create a in-memory object for AddonVrProperties ## SYNTAX ``` -New-AzVMwareAddonVrPropertiesObject -VrsCount [] +New-AzVMwareAddonVrPropertiesObject -VrsCount [-ProgressAction ] [] ``` ## DESCRIPTION @@ -36,6 +36,21 @@ Create a local VR object for the Addon Property parameter ## PARAMETERS +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VrsCount The vSphere Replication Server (VRS) count. diff --git a/src/VMware/VMware/help/New-AzVMwareAuthorization.md b/src/VMware/VMware/help/New-AzVMwareAuthorization.md index b7eabb98590c..c51a84737050 100644 --- a/src/VMware/VMware/help/New-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/New-AzVMwareAuthorization.md @@ -16,20 +16,20 @@ Create an ExpressRoute Circuit Authorization in a private cloud ``` New-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -158,6 +158,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareCloudLink.md b/src/VMware/VMware/help/New-AzVMwareCloudLink.md index 5249808283e2..54041b5e668c 100644 --- a/src/VMware/VMware/help/New-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/New-AzVMwareCloudLink.md @@ -16,20 +16,20 @@ Create a cloud link in a private cloud ``` New-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareCluster.md b/src/VMware/VMware/help/New-AzVMwareCluster.md index d9331420f326..a95aa17f33ed 100644 --- a/src/VMware/VMware/help/New-AzVMwareCluster.md +++ b/src/VMware/VMware/help/New-AzVMwareCluster.md @@ -16,7 +16,7 @@ Create a cluster in a private cloud ``` New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] -SkuName [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,14 +24,14 @@ New-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName ``` New-AzVMwareCluster -Name -PrivateCloudInputObject -SkuName [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwareCluster -InputObject -SkuName [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -175,6 +175,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts diff --git a/src/VMware/VMware/help/New-AzVMwareDatastore.md b/src/VMware/VMware/help/New-AzVMwareDatastore.md index e89e1aee188d..a226c199445a 100644 --- a/src/VMware/VMware/help/New-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/New-AzVMwareDatastore.md @@ -17,7 +17,7 @@ Create a datastore in a private cloud cluster New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,14 +26,14 @@ New-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,7 +41,7 @@ New-AzVMwareDatastore -Name -ClusterInputObject [-Dis ``` New-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -261,6 +261,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md index 4e2a1d28c965..a2d6eb9e0cc9 100644 --- a/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/New-AzVMwareGlobalReachConnection.md @@ -17,14 +17,14 @@ Create a global reach connection in a private cloud New-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityPrivateCloudExpanded ``` New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ New-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteResourceId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md b/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md index 9186a30c8ab4..4d7dc22ef347 100644 --- a/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md +++ b/src/VMware/VMware/help/New-AzVMwareIdentitySourceObject.md @@ -15,7 +15,7 @@ Create an in-memory object for IdentitySource. ``` New-AzVMwareIdentitySourceObject [-Alias ] [-BaseGroupDn ] [-BaseUserDn ] [-Domain ] [-Name ] [-Password ] [-PrimaryServer ] [-SecondaryServer ] - [-Ssl ] [-Username ] [] + [-Ssl ] [-Username ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -150,6 +150,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecondaryServer Secondary server URL. diff --git a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md index 22271877d765..37ae171be055 100644 --- a/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwarePSCredentialExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for PSCredentialExecutionParameter ``` New-AzVMwarePSCredentialExecutionParameterObject -Name [-Password ] [-Username ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -67,6 +67,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Username username for login. diff --git a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md index 98fd1c0afb0e..1efaac267eee 100644 --- a/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/New-AzVMwarePlacementPolicy.md @@ -16,7 +16,7 @@ Create a placement policy in a private cloud cluster ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,20 +24,20 @@ New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudNa ``` New-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityClusterExpanded ``` New-AzVMwarePlacementPolicy -Name -ClusterInputObject [-Property ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzVMwarePlacementPolicy -InputObject [-Property ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -212,6 +212,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Property placement policy properties diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md index bf0b2a87d556..df94152fcc6c 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloud.md @@ -20,7 +20,7 @@ New-AzVMwarePrivateCloud -Name -ResourceGroupName [-Subscripti [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-NsxtPassword ] [-Tag ] [-VcenterPassword ] - [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] + [-AcceptEULA] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -366,6 +366,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md index ef261d77a005..c4f5a2aceab7 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudNsxtPassword.md @@ -16,13 +16,13 @@ Rotate the NSX-T Manager password ``` New-AzVMwarePrivateCloudNsxtPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudNsxtPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md index b56fa16e47e2..7b94f5eb1e54 100644 --- a/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md +++ b/src/VMware/VMware/help/New-AzVMwarePrivateCloudVcenterPassword.md @@ -16,13 +16,13 @@ Rotate the vCenter password ``` New-AzVMwarePrivateCloudVcenterPassword -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### RotateViaIdentity ``` New-AzVMwarePrivateCloudVcenterPassword -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -134,6 +134,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md index f23581d9d10c..38ed6ad3a859 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptSecureStringExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for ScriptSecureStringExecutionParameter ``` New-AzVMwareScriptSecureStringExecutionParameterObject -Name [-SecureValue ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SecureValue A secure value for the passed parameter, not to be stored in logs. diff --git a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md index 3e8f23bc5169..f5ab8058ea38 100644 --- a/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md +++ b/src/VMware/VMware/help/New-AzVMwareScriptStringExecutionParameterObject.md @@ -14,7 +14,7 @@ Create a in-memory object for ScriptStringExecutionParameter ``` New-AzVMwareScriptStringExecutionParameterObject -Name [-Value ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Value The value for the passed parameter. diff --git a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md index cab2b6e2ef1b..23900915d143 100644 --- a/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVMPlacementPolicyPropertiesObject.md @@ -14,7 +14,7 @@ Create an in-memory object for VMPlacementPolicyProperties. ``` New-AzVMwareVMPlacementPolicyPropertiesObject -AffinityType -VMMember -Type - [-DisplayName ] [-State ] [] + [-DisplayName ] [-State ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -70,6 +70,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -State Whether the placement policy is enabled or disabled. diff --git a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md index fad9adb56cf8..6263303fd680 100644 --- a/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md +++ b/src/VMware/VMware/help/New-AzVMwareVmHostPlacementPolicyPropertiesObject.md @@ -15,7 +15,7 @@ Create an in-memory object for VmHostPlacementPolicyProperties. ``` New-AzVMwareVmHostPlacementPolicyPropertiesObject -AffinityType -HostMember -VMMember -Type [-DisplayName ] [-State ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -89,6 +89,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -State Whether the placement policy is enabled or disabled. diff --git a/src/VMware/VMware/help/Remove-AzVMwareAddon.md b/src/VMware/VMware/help/Remove-AzVMwareAddon.md index 3f1c5e89831e..deed95a8b7b4 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAddon.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAddon.md @@ -16,13 +16,13 @@ Delete a addon in a private cloud ``` Remove-AzVMwareAddon -AddonType -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAddon -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -152,6 +152,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md index 2ad74f1f5a4c..32bb6f92bec5 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Remove-AzVMwareAuthorization.md @@ -16,20 +16,20 @@ Delete an ExpressRoute Circuit Authorization in a private cloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md index 19e05e1af50e..0feedf34c633 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCloudLink.md @@ -16,19 +16,19 @@ Delete a cloud link in a private cloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCloudLink -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCloudLink -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareCluster.md b/src/VMware/VMware/help/Remove-AzVMwareCluster.md index 710aa86bc845..839da50eb116 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Remove-AzVMwareCluster.md @@ -16,19 +16,19 @@ Delete a cluster in a private cloud ``` Remove-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareCluster -Name -PrivateCloudInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareCluster -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md index cdb093597e93..47fd39ec58c8 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Remove-AzVMwareDatastore.md @@ -16,26 +16,26 @@ Delete a datastore in a private cloud cluster ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwareDatastore -Name -ClusterInputObject [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareDatastore -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -210,6 +210,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md index 6c4f55c081c1..74bc17e32ad4 100644 --- a/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Remove-AzVMwareGlobalReachConnection.md @@ -16,20 +16,20 @@ Delete a global reach connection in a private cloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwareGlobalReachConnection -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -174,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md index 94e07d18ce4b..91b4e7b85f33 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePlacementPolicy.md @@ -16,27 +16,27 @@ Delete a placement policy in a private cloud cluster ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityPrivateCloud ``` Remove-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityCluster ``` Remove-AzVMwarePlacementPolicy -Name -ClusterInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePlacementPolicy -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -211,6 +211,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md index cbb9242f5f5a..3d011401915a 100644 --- a/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Remove-AzVMwarePrivateCloud.md @@ -15,14 +15,14 @@ Delete a private cloud ### Delete (Default) ``` Remove-AzVMwarePrivateCloud -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzVMwarePrivateCloud -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -137,6 +137,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md index 62bd0245ef31..2d272703cdd4 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationQuotaAvailability.md @@ -14,7 +14,7 @@ Return quota for subscription by region ``` Test-AzVMwareLocationQuotaAvailability -Location [-SubscriptionId ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -68,6 +68,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. diff --git a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md index d6c583725d6c..5e9b795fee15 100644 --- a/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md +++ b/src/VMware/VMware/help/Test-AzVMwareLocationTrialAvailability.md @@ -14,7 +14,7 @@ Return trial status for subscription by region ``` Test-AzVMwareLocationTrialAvailability -Location [-SubscriptionId ] [-Name ] - [-DefaultProfile ] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. diff --git a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md index e9009132311b..b96a2157010d 100644 --- a/src/VMware/VMware/help/Update-AzVMwareAuthorization.md +++ b/src/VMware/VMware/help/Update-AzVMwareAuthorization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareAuthorization ## SYNOPSIS -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud ## SYNTAX @@ -16,24 +16,24 @@ Create an ExpressRoute Circuit Authorization in a private cloud ``` Update-AzVMwareAuthorization -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareAuthorization -Name -PrivateCloudInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareAuthorization -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create an ExpressRoute Circuit Authorization in a private cloud +Update an ExpressRoute Circuit Authorization in a private cloud ## EXAMPLES @@ -163,6 +163,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md index b9851ffc7b28..e0ac6553d432 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCloudLink.md +++ b/src/VMware/VMware/help/Update-AzVMwareCloudLink.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareCloudLink ## SYNOPSIS -Create a cloud link in a private cloud +Update a cloud link in a private cloud ## SYNTAX @@ -16,24 +16,24 @@ Create a cloud link in a private cloud ``` Update-AzVMwareCloudLink -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-LinkedCloud ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCloudLink -Name -PrivateCloudInputObject [-LinkedCloud ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCloudLink -InputObject [-LinkedCloud ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a cloud link in a private cloud +Update a cloud link in a private cloud ## EXAMPLES @@ -173,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareCluster.md b/src/VMware/VMware/help/Update-AzVMwareCluster.md index e9c78a47b6db..34eb74b04e1a 100644 --- a/src/VMware/VMware/help/Update-AzVMwareCluster.md +++ b/src/VMware/VMware/help/Update-AzVMwareCluster.md @@ -16,20 +16,20 @@ Update a cluster in a private cloud ``` Update-AzVMwareCluster -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareCluster -Name -PrivateCloudInputObject [-ClusterSize ] [-PropertiesHost ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzVMwareCluster -InputObject [-ClusterSize ] [-PropertiesHost ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -187,6 +187,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PropertiesHost The hosts diff --git a/src/VMware/VMware/help/Update-AzVMwareDatastore.md b/src/VMware/VMware/help/Update-AzVMwareDatastore.md index c1d5ee046bbb..7b0bca83d85b 100644 --- a/src/VMware/VMware/help/Update-AzVMwareDatastore.md +++ b/src/VMware/VMware/help/Update-AzVMwareDatastore.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareDatastore ## SYNOPSIS -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster ## SYNTAX @@ -17,7 +17,7 @@ Create a datastore in a private cloud cluster Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,14 +26,14 @@ Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudName Update-AzVMwareDatastore -ClusterName -Name -PrivateCloudInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityClusterExpanded ``` Update-AzVMwareDatastore -Name -ClusterInputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,12 +41,12 @@ Update-AzVMwareDatastore -Name -ClusterInputObject [- ``` Update-AzVMwareDatastore -InputObject [-DiskPoolVolumeLunName ] [-DiskPoolVolumeMountOption ] [-DiskPoolVolumeTargetId ] [-NetAppVolumeId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a datastore in a private cloud cluster +Update a datastore in a private cloud cluster ## EXAMPLES @@ -261,6 +261,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md index 520d7eb4e75f..effe92d71d18 100644 --- a/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md +++ b/src/VMware/VMware/help/Update-AzVMwareGlobalReachConnection.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzVMwareGlobalReachConnection ## SYNOPSIS -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud ## SYNTAX @@ -17,14 +17,14 @@ Create a global reach connection in a private cloud Update-AzVMwareGlobalReachConnection -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityPrivateCloudExpanded ``` Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,11 +32,11 @@ Update-AzVMwareGlobalReachConnection -Name -PrivateCloudInputObject [-AuthorizationKey ] [-ExpressRouteId ] [-PeerExpressRouteCircuit ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create a global reach connection in a private cloud +Update a global reach connection in a private cloud ## EXAMPLES @@ -206,6 +206,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md index 3b55965834d4..22b96df6c76e 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md +++ b/src/VMware/VMware/help/Update-AzVMwarePlacementPolicy.md @@ -17,7 +17,7 @@ Update a placement policy in a private cloud cluster Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudName -ResourceGroupName [-SubscriptionId ] [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -25,7 +25,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateCloudInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -33,7 +33,7 @@ Update-AzVMwarePlacementPolicy -ClusterName -Name -PrivateClou ``` Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] - [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-VMMember ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -41,7 +41,7 @@ Update-AzVMwarePlacementPolicy -Name -ClusterInputObject [-AffinityStrength ] [-AzureHybridBenefitType ] [-HostMember ] [-State ] [-VMMember ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -259,6 +259,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. diff --git a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md index 81686e32ef32..e8b608e3cec4 100644 --- a/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md +++ b/src/VMware/VMware/help/Update-AzVMwarePrivateCloud.md @@ -19,7 +19,7 @@ Update-AzVMwarePrivateCloud -Name -ResourceGroupName [-Subscri [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-ManagementClusterSize ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -29,7 +29,7 @@ Update-AzVMwarePrivateCloud -InputObject [-EncryptionStatus ] [-IdentitySource ] [-IdentityType ] [-Internet ] [-KeyVaultPropertyKeyName ] [-KeyVaultPropertyKeyVaultUrl ] [-KeyVaultPropertyKeyVersion ] [-ManagementClusterHost ] [-ManagementClusterSize ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -296,6 +296,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive.